Skip to content

Commit

Permalink
Update _get_catch_config in pokemon_catch_worker (#1124)
Browse files Browse the repository at this point in the history
It should return the setting given by "any" in the catch_config file, instead of return {} for a "unspecified" pokemon.
  • Loading branch information
xc-mezcal authored and solderzzc committed Jul 27, 2016
1 parent 24a6649 commit 1e1e5b9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pokemongo_bot/cell_workers/pokemon_catch_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1e1e5b9

Please sign in to comment.