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

[snapshot/master] Make sure config['warnings'] is set.



This config option was introduced by c72b1fce, but nothing guaranteed
it exists.
---
 web/app/snapshot/lib/app_globals.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/web/app/snapshot/lib/app_globals.py b/web/app/snapshot/lib/app_globals.py
index 9593f56..bf0f718 100644
--- a/web/app/snapshot/lib/app_globals.py
+++ b/web/app/snapshot/lib/app_globals.py
@@ -62,6 +62,8 @@ 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: