Log semi-global exceptions.

pull/7/head
Ferry Boender 10 years ago
parent 6e5efd276a
commit f4be82538f
  1. 3
      src/scriptform.py

@ -565,7 +565,8 @@ class WebAppHandler(BaseHTTPRequestHandler):
self.send_error(404, "Not found") self.send_error(404, "Not found")
return return
method_cb(**params) method_cb(**params)
except Exception: except Exception, e:
self.scriptform.log.exception(e)
self.send_error(500, "Internal server error") self.send_error(500, "Internal server error")
raise raise

Loading…
Cancel
Save