Skip to content

Commit

Permalink
fix response json status bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lwestenberg committed Feb 23, 2022
1 parent 208b11d commit 72fffe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bold_smart_lock/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async def request_validation_id(self, email: str = None, phone: str = None):
raise InvalidEmail
elif response_json["errorCode"] == INVALID_PHONE_ERROR:
raise InvalidPhone
elif response_json.status == 400:
elif response_json["status"] == 400:
raise EmailOrPhoneNotSpecified

if "id" in response_json:
Expand Down

0 comments on commit 72fffe7

Please sign in to comment.