mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Handle the case if there's no global_conf (like in functional tests).
This commit is contained in:
@@ -117,7 +117,8 @@ class Configuration( object ):
|
||||
if global_conf and "__file__" in global_conf:
|
||||
global_conf_parser.read(global_conf['__file__'])
|
||||
# Heartbeat log file name override
|
||||
self.heartbeat_log = global_conf.get( 'heartbeat_log', 'heartbeat.log' )
|
||||
if global_conf is not None:
|
||||
self.heartbeat_log = global_conf.get( 'heartbeat_log', 'heartbeat.log' )
|
||||
#Store per-tool runner config
|
||||
try:
|
||||
self.tool_runners = global_conf_parser.items("galaxy:tool_runners")
|
||||
|
||||
Reference in New Issue
Block a user