# HG changeset patch # User Sylvain Thénault # Date 1246870573 -7200 # Node ID f27a3a75be0d2c35424125651818f9756a12369f # Parent 5483155a1e177876533daa470892e6bacca03caa no tb for RequestError diff -r 5483155a1e17 -r f27a3a75be0d 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)