Skip to content

Comments

Fix a crash in incubate_eggs_worker#1853

Closed
bigkraig wants to merge 1 commit intoPokemonGoF:devfrom
bigkraig:dev
Closed

Fix a crash in incubate_eggs_worker#1853
bigkraig wants to merge 1 commit intoPokemonGoF:devfrom
bigkraig:dev

Conversation

@bigkraig
Copy link
Contributor

Short Description:
Traceback (most recent call last):
File "pokecli.py", line 455, in
main()
File "pokecli.py", line 68, in main
bot.tick()
File "/usr/src/app/pokemongo_bot/init.py", line 84, in tick
if worker.work() == WorkerResult.RUNNING:
File "/usr/src/app/pokemongo_bot/cell_workers/incubate_eggs_worker.py", line 29, in work
self._hatch_eggs()
File "/usr/src/app/pokemongo_bot/cell_workers/incubate_eggs_worker.py", line 134, in _hatch_eggs
for pokemon in pokemon_data:
UnboundLocalError: local variable 'pokemon_data' referenced before assignment

Fixes:

  • return instead of pass'ing the UnboundLocalError

@reddivision
Copy link
Contributor

Fix is already in #1777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants