mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Check to see if toolshed install is actually bound prior to disposing (exact same functionality here, but it's less chatty this way, since it might not be bound)
This commit is contained in:
@@ -107,7 +107,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