Skip to content

Commit

Permalink
Fix Failed callback exception (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrovas authored Aug 30, 2024
1 parent 886d77b commit 6291cc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aioviberbot/api/viber_requests/viber_failed_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def __init__(self):

def from_dict(self, request_dict):
super(ViberFailedRequest, self).from_dict(request_dict)
self._message_token = request_dict['message_token']
self._user_id = request_dict['user_id']
self._desc = request_dict['desc']
self._message_token = request_dict.get('message_token')
self._user_id = request_dict.get('user_id')
self._desc = request_dict.get('desc')
return self

@property
Expand Down

0 comments on commit 6291cc5

Please # to comment.