changeset 3511:e1568c0bac1f beta

only use errormator if it's actually turned on in .ini file
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 09 Mar 2013 15:10:05 +0100
parents 224cc3661f7d
children ff3f10a6a203
files rhodecode/config/middleware.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/config/middleware.py	Sun Mar 10 20:28:54 2013 +0100
+++ b/rhodecode/config/middleware.py	Sat Mar 09 15:10:05 2013 +0100
@@ -56,7 +56,7 @@
 
         from rhodecode.lib.middleware.sentry import Sentry
         from rhodecode.lib.middleware.errormator import Errormator
-        if Errormator:
+        if Errormator and asbool(config['app_conf'].get('errormator')):
             app = Errormator(app, config)
         elif Sentry:
             app = Sentry(app, config)