[publisher] with python>=2.5, we should catch BaseException here stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 16 Sep 2010 18:39:16 +0200
branchstable
changeset 6272 bb546568e466
parent 6266 de588e756f4f
child 6273 8dbdd4cc7938
[publisher] with python>=2.5, we should catch BaseException here
web/application.py
--- a/web/application.py	Thu Sep 16 15:42:34 2010 +0200
+++ b/web/application.py	Thu Sep 16 18:39:16 2010 +0200
@@ -429,7 +429,7 @@
                 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!!!')