summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-01-27 00:31:42 +0100
committeremkael <emkael@tlen.pl>2018-01-27 00:31:42 +0100
commitac5c7284840e501a60f24f3773677e55f2e8741a (patch)
treeea28c6cb5fc1484c8676730e097b9c764193b4c9
parent56cf622dae759e86a2b1aabc930266f390efc709 (diff)
Exception handling for remote JSON
-rw-r--r--jfr_playoff/settings.py2
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