Skip to content

Commit

Permalink
Merge fix #35
Browse files Browse the repository at this point in the history
Fix #35
  • Loading branch information
WhiteApfel authored Jul 26, 2022
2 parents 1010888 + 39404ea commit 98811b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyqiwip2p/p2p_types/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def __init__(
ignore_args: bool = False,
):
if json_data:
self.phone = json_data["phone"]
self.email = json_data["email"]
self.account = json_data["account"]
self.phone = json_data.get("phone")
self.email = json_data.get("email")
self.account = json_data.get("account")
else:
if all([phone, email, account]) or ignore_args:
if ignore_valid:
Expand Down

0 comments on commit 98811b7

Please sign in to comment.