[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[snapshot/master] Ok, that didn't help much, try this one instead



---
 web/app/snapshot/config/middleware.py |    2 +-
 web/app/snapshot/lib/app_globals.py   |    2 --
 2 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/web/app/snapshot/config/middleware.py b/web/app/snapshot/config/middleware.py
index 438c369..9701a7a 100644
--- a/web/app/snapshot/config/middleware.py
+++ b/web/app/snapshot/config/middleware.py
@@ -84,7 +84,7 @@ def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
             app = StatusCodeRedirect(app, [400, 401, 403, 404, 500])
 
     # Optionally suppress all Python warnings
-    if not asbool(config['warnings']):
+    if not 'warnings' in config or not asbool(config['warnings']):
         warnings.simplefilter("ignore")
 
     # Establish the Registry for this application
diff --git a/web/app/snapshot/lib/app_globals.py b/web/app/snapshot/lib/app_globals.py
index bf0f718..9593f56 100644
--- a/web/app/snapshot/lib/app_globals.py
+++ b/web/app/snapshot/lib/app_globals.py
@@ -62,8 +62,6 @@ class Globals(object):
         defaults['snapshot.domain'] = 'snapshot.debian.org'
         defaults['snapshot.masterdomain'] = 'snapshot-master.debian.org'
 
-        defaults['warnings'] = False
-
         for key in defaults:
             if not key in config['app_conf']: config['app_conf'][key] = defaults[key]
 
-- 
1.5.6.5


Reply to: