Skip to content

Commit

Permalink
Merge pull request #6033 from MerlionRock/dev
Browse files Browse the repository at this point in the history
Fix crashes when no warning
  • Loading branch information
pogarek authored May 5, 2017
2 parents ac0f3fa + 93cb6de commit a33c6b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,8 @@ def _print_character_info(self):

if response_dict:
self._player = response_dict['responses']['GET_PLAYER']['player_data']
warn = response_dict['responses']['GET_PLAYER']['warn']
if 'warn' in response_dict['responses']['GET_PLAYER']:
warn = response_dict['responses']['GET_PLAYER']['warn']
player = self._player
else:
self.logger.info(
Expand Down

0 comments on commit a33c6b4

Please sign in to comment.