web/application.py
changeset 6279 42079f752a9c
parent 6139 f76599a96238
parent 6273 8dbdd4cc7938
child 6333 e3994fcc21c3
--- a/web/application.py	Tue Sep 14 08:48:44 2010 +0200
+++ b/web/application.py	Thu Sep 16 18:56:35 2010 +0200
@@ -420,11 +420,12 @@
                 self.validation_error_handler(req, ex)
             except (Unauthorized, BadRQLQuery, RequestError), ex:
                 self.error_handler(req, ex, tb=False)
-            except Exception, ex:
+            except BaseException, ex:
                 self.error_handler(req, ex, tb=True)
             except:
                 self.critical('Catch all triggered!!!')
                 self.exception('this is what happened')
+                result = 'oops'
         finally:
             if req.cnx and not commited:
                 try: