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:
Eric Rasche
2015-10-26 18:05:31 +00:00
+1 -1
View File
@@ -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