From 56c4384bb54229f37803a3fa0516e6417cfb2496 Mon Sep 17 00:00:00 2001 From: xc-mezcal Date: Wed, 27 Jul 2016 00:46:46 -0400 Subject: [PATCH] Update _get_catch_config in pokemon_catch_worker (#1124) 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):