From b83a688020924cb6bdbc72a5bf35a421a2c47d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ph=E1=BA=A1m=20Ng=E1=BB=8Dc=20Quang=20Nam?= Date: Sat, 30 Jul 2016 21:38:12 +0700 Subject: [PATCH] Update incubate_eggs_worker.py Fix: variable 'pokemon_data' referenced before assignment --- pokemongo_bot/cell_workers/incubate_eggs_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/incubate_eggs_worker.py b/pokemongo_bot/cell_workers/incubate_eggs_worker.py index dd3654b510..e2f8a4a1cf 100644 --- a/pokemongo_bot/cell_workers/incubate_eggs_worker.py +++ b/pokemongo_bot/cell_workers/incubate_eggs_worker.py @@ -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']