##// END OF EJS Templates
serve: catch and log all Exceptions, not only StandardException...
Mads Kiilerich -
r13443:8fa83d71 stable
parent child Browse files
Show More
@@ -68,7 +68,7 b' class _httprequesthandler(BaseHTTPServer'
68 def do_POST(self):
68 def do_POST(self):
69 try:
69 try:
70 self.do_write()
70 self.do_write()
71 except StandardError:
71 except Exception:
72 self._start_response("500 Internal Server Error", [])
72 self._start_response("500 Internal Server Error", [])
73 self._write("Internal Server Error")
73 self._write("Internal Server Error")
74 tb = "".join(traceback.format_exception(*sys.exc_info()))
74 tb = "".join(traceback.format_exception(*sys.exc_info()))
General Comments 0
You need to be logged in to leave comments. Login now