Skip to content

Commit

Permalink
fix response json status (#5)
Browse files Browse the repository at this point in the history
* fix response json status bug
  • Loading branch information
lwestenberg authored Feb 23, 2022
1 parent 208b11d commit 346c54a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""Python Bold Smart Lock setup script."""
from setuptools import setup

_VERSION = "0.2.2"
_VERSION = "0.2.3"


def readme():
Expand Down

0 comments on commit 346c54a

Please sign in to comment.