--- a/cubicweb/pyramid/core.py Mon Oct 30 09:28:52 2017 +0100
+++ b/cubicweb/pyramid/core.py Mon Oct 30 09:32:26 2017 +0100
@@ -369,7 +369,7 @@
try:
session = repo_connect(request, repo, eid=login)
request._cw_cached_session = session
- except:
+ except Exception:
log.exception("Failed")
raise
--- a/cubicweb/pyramid/session.py Mon Oct 30 09:28:52 2017 +0100
+++ b/cubicweb/pyramid/session.py Mon Oct 30 09:32:26 2017 +0100
@@ -102,7 +102,7 @@
def newfn(*args, **kw):
try:
return fn(*args, **kw)
- except:
+ except Exception:
logger.exception("Error in %s" % fn.__name__)
return newfn
return wrap