web/application.py
branchstable
changeset 2272 f27a3a75be0d
parent 2263 1f59cd5b710f
child 2293 7ded2a1416e4
--- 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)