mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #986 from natefoo/smash_eggs
Do not attempt to read the `load` attribute of job runner plugins that do not have a `load` attribute.
This commit is contained in:
@@ -25,7 +25,7 @@ class ConditionalDependencies( object ):
|
||||
"job_config_file",
|
||||
join( dirname( self.config_file ), 'job_conf.xml' ) )
|
||||
try:
|
||||
for plugin in ElementTree.parse( job_conf_xml ).find( 'plugins' ):
|
||||
for plugin in ElementTree.parse( job_conf_xml ).findall( './plugins/plugin[@load]' ):
|
||||
self.job_runners.append( plugin.attrib['load'] )
|
||||
except (OSError, IOError):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user