Skip to content

Commit

Permalink
fix: LiteUserのhostを取得するとkeyErrorになる可能性がある
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Nov 27, 2022
1 parent 177f234 commit 32d3f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mipac/models/lite/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def username(self) -> str:

@property
def host(self) -> str | None:
return self.__user['host']
return self.__user['host'] if 'host' in self.__user else None

@property
@deprecated
Expand Down

0 comments on commit 32d3f68

Please sign in to comment.