From f4be82538faf1886203da20c40e3d9135939e97b Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Thu, 9 Apr 2015 09:20:44 +0200 Subject: [PATCH] Log semi-global exceptions. --- src/scriptform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scriptform.py b/src/scriptform.py index 92e5b0e..48d2a9f 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -565,7 +565,8 @@ class WebAppHandler(BaseHTTPRequestHandler): self.send_error(404, "Not found") return method_cb(**params) - except Exception: + except Exception, e: + self.scriptform.log.exception(e) self.send_error(500, "Internal server error") raise