summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jfr_playoff/settings.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/jfr_playoff/settings.py b/jfr_playoff/settings.py
index 963dbf0..5017223 100644
--- a/jfr_playoff/settings.py
+++ b/jfr_playoff/settings.py
@@ -25,8 +25,10 @@ class PlayoffSettings(object):
new_config=None, remote_url=None,
overwrite=True):
try:
- 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)
+ remote_file = urllib.urlopen(remote_url)
+ print remote_file.info()
+ remote_content = remote_file.read().decode('utf-8-sig')
+ remote_config = new_config if new_config is not None else json.loads(remote_content)
for key, value in remote_config.iteritems():
if (key not in base_config) or overwrite:
base_config[key] = value