mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user