changeset 3007:102a7ca14a64

do not treat SystemExit exception as a failure (fixes SystemExit showing up in the logs when using fastcgi) (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 19:07:14 +0100
parents 8974561cc460
children f8738a94d990
files MoinMoin/request/__init__.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/request/__init__.py	Sun Jan 06 19:04:16 2008 +0100
+++ b/MoinMoin/request/__init__.py	Sun Jan 06 19:07:14 2008 +0100
@@ -1270,6 +1270,8 @@
 
         except MoinMoinFinish:
             pass
+        except SystemExit:
+            raise # fcgi uses this to terminate a thread
         except Exception, err:
             self.fail(err)
             self.finish()