From 2ccb3a3fa87627b9a2681905550e52db7e259ab0 Mon Sep 17 00:00:00 2001 From: emkael Date: Wed, 21 Feb 2018 15:06:57 +0100 Subject: ? --- jfr_playoff/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jfr_playoff/settings.py b/jfr_playoff/settings.py index c95cf44..31b29e7 100644 --- a/jfr_playoff/settings.py +++ b/jfr_playoff/settings.py @@ -26,9 +26,10 @@ class PlayoffSettings(object): overwrite=True): try: print locals() - remote_file = urllib.urlopen(remote_url) - remote_content = remote_file.read().decode('utf-8-sig') - remote_config = json.loads(remote_content) + if remote_url is not None: + remote_file = urllib.urlopen(remote_url) + remote_content = remote_file.read().decode('utf-8-sig') + remote_config = json.loads(remote_content) 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: -- cgit v1.2.3