From ce773607683f3e062e946f60c868f27a1c23ac1f Mon Sep 17 00:00:00 2001 From: xc-mezcal Date: Wed, 27 Jul 2016 00:37:11 -0400 Subject: [PATCH] Update _get_catch_config in pokemon_catch_worker It should return the setting given by "any" in the catch_config file, instead of return {} for a "unspecified" pokemon. --- pokemongo_bot/cell_workers/pokemon_catch_worker.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/pokemongo_bot/cell_workers/pokemon_catch_worker.py b/pokemongo_bot/cell_workers/pokemon_catch_worker.py index 9c7a0d67aa..edd2da894e 100644 --- a/pokemongo_bot/cell_workers/pokemon_catch_worker.py +++ b/pokemongo_bot/cell_workers/pokemon_catch_worker.py @@ -333,8 +333,6 @@ def _get_catch_config_for(self, pokemon): catch_config = self.config.catch.get(pokemon) if not catch_config: catch_config = self.config.catch.get('any') - if not catch_config: - catch_config = {} return catch_config def should_release_pokemon(self, pokemon_name, cp, iv, response_dict):