# HG changeset patch # User Sylvain Thénault # Date 1287582003 -7200 # Node ID 33343d6eae0ada01fb29b091b901a962fb419b53 # Parent 2b1679aa5cc1e464c587b5a4d46775610dd744e5 [view] log error on view_func call diff -r 2b1679aa5cc1 -r 33343d6eae0a view.py --- a/view.py Wed Oct 20 14:50:58 2010 +0200 +++ b/view.py Wed Oct 20 15:40:03 2010 +0200 @@ -170,7 +170,11 @@ 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()