We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e631dd + ea2619f commit e20a7e5Copy full SHA for e20a7e5
magnum/db/sqlalchemy/api.py
@@ -64,7 +64,8 @@ def _session_for_write():
64
65
66
def _wrap_session(session):
67
- if CONF.profiler.enabled and CONF.profiler.trace_sqlalchemy:
+ if (hasattr(CONF, 'profiler') and CONF.profiler.enabled and
68
+ CONF.profiler.trace_sqlalchemy):
69
session = profiler_sqlalchemy.wrap_session(sa, session)
70
return session
71
0 commit comments