diff options
author | emkael <emkael@tlen.pl> | 2018-01-27 00:31:42 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-01-27 00:31:42 +0100 |
commit | ac5c7284840e501a60f24f3773677e55f2e8741a (patch) | |
tree | ea28c6cb5fc1484c8676730e097b9c764193b4c9 /jfr_playoff | |
parent | 56cf622dae759e86a2b1aabc930266f390efc709 (diff) |
Exception handling for remote JSON
Diffstat (limited to 'jfr_playoff')
-rw-r--r-- | jfr_playoff/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jfr_playoff/settings.py b/jfr_playoff/settings.py index a40fd9b..a4118ea 100644 --- a/jfr_playoff/settings.py +++ b/jfr_playoff/settings.py @@ -31,7 +31,7 @@ class PlayoffSettings(object): for key, value in remote_config.iteritems(): if (key not in base_config) or overwrite: base_config[key] = value - except e: + except Exception as e: print 'WARNING: unable to fetch remote config %s: %s' % ( url, str(e)) return base_config |