From 2d89bdcfec4c1a2dde56bec52f8ae1a75449ba67 Mon Sep 17 00:00:00 2001 From: rawgni Date: Mon, 29 Aug 2016 21:49:57 +0700 Subject: [PATCH] add some sanitycheck --- pokemongo_bot/cell_workers/evolve_pokemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemongo_bot/cell_workers/evolve_pokemon.py b/pokemongo_bot/cell_workers/evolve_pokemon.py index 431633aab8..7cd37f77bc 100644 --- a/pokemongo_bot/cell_workers/evolve_pokemon.py +++ b/pokemongo_bot/cell_workers/evolve_pokemon.py @@ -40,7 +40,7 @@ def work(self): if self.evolve_all[0] != 'all': # check for negation - negate = filter(lambda x: x[0] == '-', self.evolve_all) + negate = filter(lambda x: len(x) > 0 and x[0] == '-', self.evolve_all) # if there are things to negate if len(negate) > 0: