changeset 1593:d841e19410e9

Drop the old semantics of the MOIN_DEBUG env var.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Tue, 26 Sep 2006 23:42:13 +0200
parents 4b752a969078
children 53bd1632c92a
files MoinMoin/failure.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/failure.py	Tue Sep 26 23:07:09 2006 +0200
+++ b/MoinMoin/failure.py	Tue Sep 26 23:42:13 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: