cubicweb/pyramid/core.py
branch3.26
changeset 12432 2fcb53ee5178
parent 12349 7e670235174f
child 12491 540904e0ff0f
--- a/cubicweb/pyramid/core.py	Tue Oct 09 16:24:12 2018 +0200
+++ b/cubicweb/pyramid/core.py	Mon Oct 29 10:04:31 2018 +0100
@@ -129,7 +129,7 @@
              DeprecationWarning, stacklevel=2)
         request.body = ex.content
         request.status_int = ex.status
-    except cubicweb.web.Unauthorized as ex:
+    except cubicweb.web.Unauthorized:
         raise httpexceptions.HTTPForbidden(
             request.cw_request._(
                 'You\'re not authorized to access this page. '
@@ -143,7 +143,7 @@
                 'If you think it should be allowed, please contact the site '
                 'administrator.'),
             headers=cw_headers(request))
-    except (rql.BadRQLQuery, cubicweb.web.RequestError) as ex:
+    except (rql.BadRQLQuery, cubicweb.web.RequestError):
         raise