Skip to content

Commit

Permalink
fix: use dict.get instead of key index
Browse files Browse the repository at this point in the history
Fixes #199
  • Loading branch information
stanvanrooy committed Aug 7, 2021
1 parent 7f8c26b commit 682ce5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instauto/api/actions/friendships.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def _get_base(self, obj: Union[GetFollowing, GetFollowers]) -> \
# pyre-ignore[6]
obj.max_id = as_json['next_max_id']
# pyre-ignore[58]
obj.page = data['page'] + 1
obj.page = data.get('page', 0) + 1
return obj, resp

0 comments on commit 682ce5f

Please sign in to comment.