PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[DEV] IndexError crash on get_lured_pokemon

Open zachd opened this issue 10 years ago • 0 comments

Hi, found a crash under normal operation using dev branch. Details below.

Traceback (most recent call last):
  File "pokecli.py", line 408, in <module>
    main()
  File "pokecli.py", line 68, in main
    bot.tick()
  File "/user/pgo/pokemongo_bot/__init__.py", line 92, in tick
    if worker(self).work() == WorkerResult.RUNNING:
  File "/user/pgo/pokemongo_bot/cell_workers/catch_visible_pokemon_worker.py", line 47, in work
    lured_pokemon = self.get_lured_pokemon()
  File "/user/pgo/pokemongo_bot/cell_workers/catch_visible_pokemon_worker.py", line 53, in get_lured_pokemon
    fort = forts[0]
IndexError: list index out of range

Using commit id dfa4f78f85e391e7bc9c6757478e68f724e108fc.

zachd avatar Jul 30 '16 08:07 zachd