PokemonGoF / PokemonGo-Bot

The Pokemon Go Bot, baking with community.
MIT License
3.87k stars 1.54k forks source link

PokemonHunter Task Crashing (list index out of range) #6089

Open heinleinbottle opened 7 years ago

heinleinbottle commented 7 years ago

Expected Behavior

PokemonHunter task should find designated Pokemon and attempt to catch them.

Actual Behavior

Task runs, however it will randomly crash when scanning for Pokemon / heading towards Pokemon / on stale session relogins.

Your FULL config.json (remove your username, password, gmapkey and any other private info)

https://pastebin.com/RA09vNb1

Output when issue occurred

https://pastebin.com/u6LF8NL7

Steps to Reproduce

To reproduce, I've basically restarted the bot a few times to trigger the PokemonHunter task. Whenever the PokemonHunter task runs, there seems to be a certain chance to crash the bot.

Other Information

OS: macOS Sierra v 10.12.5 Branch: master Git Commit: c07fd94f85dc53780168b9df70a1db085af68f38 Python Version: Python 2.7.10

davidakachaos commented 7 years ago

Thank you for reporting! I noticed this happens from time to time. I think it's because I added looking for wild Pokemon besides just the sightings... Will look into this soon.

heinleinbottle commented 7 years ago

Ah got it. Thanks for the work you've put in!