changeset 4623:16ee781ef3ad

updated werkzeug
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 01 Mar 2009 19:22:59 +0100
parents c24b810500b3
children fb5abe50c6d2
files MoinMoin/support/werkzeug/serving.py
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/support/werkzeug/serving.py	Sun Mar 01 19:09:10 2009 +0100
+++ b/MoinMoin/support/werkzeug/serving.py	Sun Mar 01 19:22:59 2009 +0100
@@ -176,6 +176,12 @@
         except KeyboardInterrupt:
             pass
 
+    def handle_error(self, request, client_address):
+        if self.passthrough_errors:
+            raise
+        else:
+            return HTTPServer.handle_error(self, request, client_address)
+
 
 class ThreadedWSGIServer(ThreadingMixIn, BaseWSGIServer):
     multithread = True
@@ -316,7 +322,7 @@
                          like :class:`SharedDataMiddleware`, it's actually
                          just wrapping the application in that middleware before
                          serving.
-    :param passthrough_errors: set this to `False` to disable the error catching.
+    :param passthrough_errors: set this to `True` to disable the error catching.
                                This means that the server will die on errors but
                                it can be useful to hook debuggers in (pdb etc.)
     """