From ac5c7284840e501a60f24f3773677e55f2e8741a Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 27 Jan 2018 00:31:42 +0100 Subject: Exception handling for remote JSON --- jfr_playoff/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3