Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
DeXtroTip committed Aug 30, 2016
1 parent fdcbd76 commit b74dd5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokemongo_bot/cell_workers/incubate_eggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def _hatch_eggs(self):
pokemon['name'] = "error"
except:
pokemon_data = [{"name":"error", "cp":"error", "iv":"error"}]
if not pokemon_ids or pokemon_data[0]['name'] == "error":
if not pokemon_ids or not pokemon_data or pokemon_data[0]['name'] == "error":
self.emit_event(
'egg_hatched',
data={
Expand Down

0 comments on commit b74dd5e

Please sign in to comment.