03-07-18 13:09:28 bot DEBUG Leaving Planet 529 before joining Planet 532
03-07-18 13:09:28 urllib3.connectionpool DEBUG https://community.steam-api.com:443 "POST /IMiniGameService/LeaveGame/v0001/ HTTP/1.1" 200 15
03-07-18 13:09:28 bot DEBUG Calling leave_game() gave eresult: 10 - unknown error
03-07-18 13:09:28 bot DEBUG Retrying API call in 1 seconds...
03-07-18 13:09:29 urllib3.connectionpool DEBUG https://community.steam-api.com:443 "POST /IMiniGameService/LeaveGame/v0001/ HTTP/1.1" 200 15
03-07-18 13:09:29 bot DEBUG Calling leave_game() gave eresult: 10 - unknown error
03-07-18 13:09:29 bot DEBUG Retrying API call in 2 seconds...
03-07-18 13:09:31 urllib3.connectionpool DEBUG https://community.steam-api.com:443 "POST /IMiniGameService/LeaveGame/v0001/ HTTP/1.1" 200 15
03-07-18 13:09:31 bot DEBUG Calling leave_game() gave eresult: 10 - unknown error
03-07-18 13:09:31 bot DEBUG Retrying API call in 4 seconds...
03-07-18 13:09:35 urllib3.connectionpool DEBUG https://community.steam-api.com:443 "POST /IMiniGameService/LeaveGame/v0001/ HTTP/1.1" 200 15
03-07-18 13:09:35 bot DEBUG Calling leave_game() gave eresult: 10 - unknown error
03-07-18 13:09:35 bot DEBUG Retrying API call in 8 seconds...
03-07-18 13:09:44 urllib3.connectionpool DEBUG https://community.steam-api.com:443 "POST /IMiniGameService/LeaveGame/v0001/ HTTP/1.1" 200 15
03-07-18 13:09:44 bot DEBUG Calling leave_game() gave eresult: 10 - unknown error
03-07-18 13:09:44 bot DEBUG Retrying API call in 16 seconds...
03-07-18 13:10:00 root ERROR ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * !
03-07-18 13:10:00 root ERROR ! Something went horribly wrong. Restarting bot... !
03-07-18 13:10:00 root ERROR ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * ! * !
03-07-18 13:10:00 root DEBUG Unhandled exception:
Traceback (most recent call last):
File "main.py", line 48, in <module>
bot.run()
File "D:\Programming\Python\salienbot\bot.py", line 49, in run
self._call_api(self.api.leave_game, self.player.active_planet)
File "D:\Programming\Python\salienbot\bot.py", line 91, in _call_api
raise Exception('Unable to recover from failed API call attempts')
We don't have to bail out on
eresult: 10. We just need to keep backing off (up to a point) and keep retrying.