Skip to content

Commit

Permalink
fallback to en instead of throwing runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdasding committed Aug 7, 2016
1 parent 1c2373e commit 2a105e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pokemongo_bot/cell_workers/nickname_pokemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ def initialize(self):
if os.path.isfile(fn):
self.pokemon_list = json.load(open(fn))
else:
raise RuntimeError('Locale {} not supported'.format(locale))
self.pokemon_list = self.bot.pokemon_list
logger.log('Locale {} not supported, fallback to en'.format(locale), 'red')

def work(self):
try:
Expand Down

0 comments on commit 2a105e7

Please sign in to comment.