Skip to content

Commit

Permalink
Fixed bug with premium_since field not always being present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekokatt committed Sep 13, 2020
1 parent fde02e7 commit 3611179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hikari/impl/entity_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ def deserialize_member(

joined_at = date.iso8601_datetime_string_to_datetime(payload["joined_at"])

raw_premium_since = payload["premium_since"]
raw_premium_since = payload.get("premium_since")
premium_since = (
date.iso8601_datetime_string_to_datetime(raw_premium_since) if raw_premium_since is not None else None
)
Expand Down

0 comments on commit 3611179

Please sign in to comment.