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.
1 parent d7a7f0e commit ea2619fCopy full SHA for ea2619f
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