You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like whenever the bot tries to complete an action, like spinning a pokestop, it runs into this error. My bot only runs for about 8-11 seconds total each time.
016-08-07 10:19:24,084 [PokemonGoBot] [INFO]
2016-08-07 10:19:24,084 [PokemonGoBot] [INFO]
2016-08-07 10:19:31,577 [ cli] [INFO]
2016-08-07 10:19:31,577 [ cli] [INFO] Ran for 0:00:11
Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 127, in main
report_summary(bot)
File "pokecli.py", line 139, in report_summary
logger.info('Total XP Earned: {} Average: {:.2f}/h'.format(metrics.xp_earned(), metrics.xp_per_hour()))
File "/Users/trevor/PokemonGo-Bot/pokemongo_bot/metrics.py", line 28, in xp_earned
return self.xp['latest'] - self.xp['start']
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
The text was updated successfully, but these errors were encountered:
* Re-enable the w1202 check
* Use log() interpolation instead of format()
* Fix indentation level
* Remove overly verbose logging
* W1202 rule fixup
* Trailing whitespace removal
* Remove overly verbose debugs in translation module; format if in double lines
* Fix log format to fit better and be more matching
* Log connection attempt before doing so; makes error flow clearer
* Log lines are not english prose, remove tailing periods
* "clearing database" should have an info level logline
* Quote mark consistency
* Bad quote inversion
It seems like whenever the bot tries to complete an action, like spinning a pokestop, it runs into this error. My bot only runs for about 8-11 seconds total each time.
016-08-07 10:19:24,084 [PokemonGoBot] [INFO]
2016-08-07 10:19:24,084 [PokemonGoBot] [INFO]
2016-08-07 10:19:31,577 [ cli] [INFO]
2016-08-07 10:19:31,577 [ cli] [INFO] Ran for 0:00:11
Traceback (most recent call last):
File "pokecli.py", line 493, in
main()
File "pokecli.py", line 127, in main
report_summary(bot)
File "pokecli.py", line 139, in report_summary
logger.info('Total XP Earned: {} Average: {:.2f}/h'.format(metrics.xp_earned(), metrics.xp_per_hour()))
File "/Users/trevor/PokemonGo-Bot/pokemongo_bot/metrics.py", line 28, in xp_earned
return self.xp['latest'] - self.xp['start']
TypeError: unsupported operand type(s) for -: 'NoneType' and 'NoneType'
The text was updated successfully, but these errors were encountered: