Skip to content

Commit

Permalink
Fix use get instead of pop
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Nov 20, 2024
1 parent 2927929 commit 8d46aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_connect/connect_id_client/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class UserMessageStatus:

@classmethod
def build(cls, username: str, status: str, *args, **kwargs):
error = kwargs.pop("error")
error = kwargs.get("error")
if error is not None:
raise MessagingError(error)
return cls(username, MessageStatus(status))
Expand Down

0 comments on commit 8d46aae

Please sign in to comment.