Skip to content

Commit

Permalink
Update incubate_eggs_worker.py (#1862)
Browse files Browse the repository at this point in the history
Fix: variable 'pokemon_data' referenced before assignment
  • Loading branch information
NamPNQ authored and solderzzc committed Jul 30, 2016
1 parent 2f277fd commit 9b2450a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/incubate_eggs_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _hatch_eggs(self):
try:
pokemon_data = self._check_inventory(pokemon_ids)
except:
pass # just proceed with what we have
return # pokemon_data is unassigned
for pokemon in pokemon_data:
# pokemon ids seem to be offset by one
pokemon['name'] = self.bot.pokemon_list[(pokemon['pokemon_id']-1)]['Name']
Expand Down

0 comments on commit 9b2450a

Please sign in to comment.