summaryrefslogtreecommitdiff
path: root/jfr_playoff/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/settings.py')
-rw-r--r--jfr_playoff/settings.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/jfr_playoff/settings.py b/jfr_playoff/settings.py
index acfd417..1f97e5e 100644
--- a/jfr_playoff/settings.py
+++ b/jfr_playoff/settings.py
@@ -25,9 +25,8 @@ class PlayoffSettings(object):
new_config=None, remote_url=None,
overwrite=True):
try:
- remote_config = new_config if new_config is not None else \
- json.loads(urllib.urlopen(
- remote_url).read().decode('utf-8-sig'))
+ remote_file = urllib.urlopen(remote_url).read().decode('utf-8-sig')
+ remote_config = new_config if new_config is not None else json.loads(remote_file)
for key, value in remote_config.iteritems():
if (key not in base_config) or overwrite:
base_config[key] = value