changeset 1588:8a7643aae797

Forward exceptions if MOIN_DEBUG is set in os.environment to Python debugger
author Raphael Bossek <raphael.bossek@gmx.de>
date Tue, 26 Sep 2006 22:53:50 +0200
parents 594c57bde21e
children 4b752a969078
files MoinMoin/failure.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/failure.py	Tue Sep 26 22:00:57 2006 +0200
+++ b/MoinMoin/failure.py	Tue Sep 26 22:53:50 2006 +0200
@@ -136,6 +136,9 @@
     
     Display fancy error view, or fallback to simple text traceback
     """
+    if 'MOIN_DEBUG' in os.environ:
+        raise err
+
     savedError = sys.exc_info()
     logging.error('%s: %s' % (err.__class__.__name__, str(err)), exc_info=savedError)
     try: