Commit 889de40e authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[view] log error on view_func call

parent 2b1679aa5cc1
......@@ -170,7 +170,11 @@ class View(AppObject):
else:
view_func = self.call
stream = self.set_stream(w)
view_func(**context)
try:
view_func(**context)
except:
self.debug('view call %s failed (context=%s)', view_func, context)
raise
# return stream content if we have created it
if stream is not None:
return self._stream.getvalue()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment