Skip to content

Commit

Permalink
Fixes PokemonGoF#2698. Fixed exception due to use of deprecated logge…
Browse files Browse the repository at this point in the history
…r call. The exception causes re-logins to behave incorrectly.
  • Loading branch information
geek-man committed Aug 7, 2016
1 parent ad6c21a commit 57651e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pokemongo_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,12 @@ def check_session(self, position):
self.api._auth_provider._ticket_expire / 1000 - time.time()

if remaining_time < 60:
self.logger.info("Session stale, re-logging in", 'yellow')
bot.event_manager.emit(
'session_stale',
sender=bot,
level='info',
formatted='Session stale, re-logging in.'
)
position = self.position
self.api = ApiWrapper()
self.position = position
Expand Down

0 comments on commit 57651e2

Please sign in to comment.