web/application.py
branchstable
changeset 7815 2a164a9cf81c
parent 7589 d3459fe041f0
child 7855 54283a5b7afc
--- a/web/application.py	Tue Sep 20 15:14:04 2011 +0200
+++ b/web/application.py	Wed Sep 21 17:38:00 2011 +0200
@@ -423,7 +423,7 @@
             if req.cnx and not commited:
                 try:
                     req.cnx.rollback()
-                except:
+                except Exception:
                     pass # ignore rollback error at this point
         self.info('query %s executed in %s sec', req.relative_path(), clock() - tstart)
         return result
@@ -460,7 +460,7 @@
             errview = self.vreg['views'].select('error', req)
             template = self.main_template_id(req)
             content = self.vreg['views'].main_template(req, template, view=errview)
-        except:
+        except Exception:
             content = self.vreg['views'].main_template(req, 'error-template')
         raise StatusResponse(code, content)