changeset 13443:8fa83d7159eb stable

serve: catch and log all Exceptions, not only StandardException Other exceptions than StandardExceptions were left to the default error handler which was muted when running in daemon mode. Now all Exceptions are handled and logged to the log file.
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 21 Feb 2011 00:52:23 +0100
parents bb107a31820e
children 75f5f312df5f
files mercurial/hgweb/server.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/server.py	Sun Feb 20 13:35:30 2011 +0100
+++ b/mercurial/hgweb/server.py	Mon Feb 21 00:52:23 2011 +0100
@@ -68,7 +68,7 @@
     def do_POST(self):
         try:
             self.do_write()
-        except StandardError:
+        except Exception:
             self._start_response("500 Internal Server Error", [])
             self._write("Internal Server Error")
             tb = "".join(traceback.format_exception(*sys.exc_info()))