Merge pull request #215 from dannon/release_15.03

[15.03] Check to see if toolshed install is actually bound prior to disposing (e...
This commit is contained in:
John Chilton
2015-05-05 09:26:45 -05:00
+3 -1
View File
@@ -110,7 +110,9 @@ def app_factory( global_conf, **kwargs ):
except:
log.exception("Unable to dispose of pooled galaxy model database connections.")
try:
galaxy.model.tool_shed_install.mapping.metadata.bind.dispose()
# This model may not actually be bound.
if galaxy.model.tool_shed_install.mapping.metadata.bind:
galaxy.model.tool_shed_install.mapping.metadata.bind.dispose()
except:
log.exception("Unable to dispose of pooled toolshed install model database connections.")