Withhold tracebacks from non-owner view
Committed c9edb7
--- a/web/framework/__init__.py
+++ b/web/framework/__init__.py
if getattr(tx.user, "is_owner", False):
body = config_templates.traceback(*sys.exc_info())
else:
- # TODO body = "Internal server error."
- body = config_templates.traceback(*sys.exc_info())
+ body = "<small><code>I have been notified.</code></small>"
+ # body = config_templates.traceback(*sys.exc_info())
# TODO body = self.view.error.internal()
tx.response.body = body