Don't assume app has configured a tempmon DB engine
whoops
This commit is contained in:
parent
c1eaf28812
commit
6022ef9be3
|
@ -63,8 +63,9 @@ def make_rattail_config(settings):
|
|||
|
||||
# configure database sessions
|
||||
tailbone.db.Session.configure(bind=rattail_config.rattail_engine)
|
||||
tailbone.db.TempmonSession.configure(bind=rattail_config.tempmon_engine)
|
||||
tailbone.db.TrainwreckSession.configure(bind=rattail_config.trainwreck_engine)
|
||||
if hasattr(rattail_config, 'tempmon_engine'):
|
||||
tailbone.db.TempmonSession.configure(bind=rattail_config.tempmon_engine)
|
||||
|
||||
# Make sure rattail config object uses our scoped session, to avoid
|
||||
# unnecessary connections (and pooling limits).
|
||||
|
|
Loading…
Reference in a new issue