Skip to content

Commit

Permalink
Fixing missing messages.json file (#3547)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Sep 28, 2017
1 parent ef59b6b commit 17c7ca2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superset/translations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ def get_language_pack(locale):
pack = ALL_LANGUAGE_PACKS.get(locale)
if not pack:
filename = DIR + '/{}/LC_MESSAGES/messages.json'.format(locale)
with open(filename) as f:
try:
try:
with open(filename) as f:
pack = json.load(f)
ALL_LANGUAGE_PACKS[locale] = pack
except Exception:
# Assuming english, client side falls back on english
pass
except Exception:
# Assuming english, client side falls back on english
pass
return pack

0 comments on commit 17c7ca2

Please sign in to comment.