Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kondrahin committed Oct 11, 2021
1 parent accdf92 commit 6c81f80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botx_fsm/models.py
Expand Up @@ -50,7 +50,7 @@ def to_json(self) -> str:

@classmethod
def from_message(cls, message: Message) -> "Key":
if message.user_huid is None:
if message.user_huid is None or message.group_chat_id is None:
raise RuntimeError(
"message should be received from user and contain user_huid",
)
Expand Down

0 comments on commit 6c81f80

Please sign in to comment.