no tb for RequestError stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 06 Jul 2009 10:56:13 +0200
branchstable
changeset 2272 f27a3a75be0d
parent 2271 5483155a1e17
child 2273 daf6e178659f
no tb for RequestError
web/application.py
--- a/web/application.py	Mon Jul 06 10:42:02 2009 +0200
+++ b/web/application.py	Mon Jul 06 10:56:13 2009 +0200
@@ -14,10 +14,11 @@
 
 from cubicweb import set_log_methods
 from cubicweb import (ValidationError, Unauthorized, AuthenticationError,
-                   NoSelectableObject, RepositoryError)
+                      NoSelectableObject, RepositoryError)
 from cubicweb.cwvreg import CubicWebRegistry
-from cubicweb.web import (LOGGER, StatusResponse, DirectResponse, Redirect, NotFound,
-                       RemoteCallFailed, ExplicitLogin, InvalidSession)
+from cubicweb.web import (LOGGER, StatusResponse, DirectResponse, Redirect,
+                          NotFound, RemoteCallFailed, ExplicitLogin,
+                          InvalidSession, RequestError)
 from cubicweb.web.component import Component
 
 # make session manager available through a global variable so the debug view can
@@ -348,7 +349,7 @@
                 raise
             except ValidationError, ex:
                 self.validation_error_handler(req, ex)
-            except (Unauthorized, BadRQLQuery), ex:
+            except (Unauthorized, BadRQLQuery, RequestError), ex:
                 self.error_handler(req, ex, tb=False)
             except Exception, ex:
                 self.error_handler(req, ex, tb=True)