changeset 1596:706de8a16147

merge main
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 02 Oct 2006 00:38:07 +0200
parents 3a63c9b31d7e (current diff) 53bd1632c92a (diff)
children bbe187af4fc0
files
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/failure.py	Mon Oct 02 00:37:39 2006 +0200
+++ b/MoinMoin/failure.py	Mon Oct 02 00:38:07 2006 +0200
@@ -142,8 +142,7 @@
     savedError = sys.exc_info()
     logging.error('%s: %s' % (err.__class__.__name__, str(err)), exc_info=savedError)
     try:
-        debug = ('debug' in getattr(request, 'form', {}) or
-                 'MOIN_DEBUG' in os.environ)
+        debug = 'debug' in getattr(request, 'form', {})
         handler = cgitb.Hook(file=request, viewClass=View, debug=debug)
         handler.handle()
     except: