mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Fix warning causing tool failure:
FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
This commit is contained in:
@@ -308,7 +308,7 @@ class Registry( object ):
|
||||
append_to_sniff_order()
|
||||
|
||||
def load_build_sites( self, root ):
|
||||
if root.find( 'build_sites' ):
|
||||
if root.find( 'build_sites' ) is not None:
|
||||
for elem in root.find( 'build_sites' ).findall( 'site' ):
|
||||
if not (elem.get( 'type' ) and elem.get( 'file' )):
|
||||
self.log.exception( "Site is missing required 'type' and 'file' attributes: %s" )
|
||||
|
||||
Reference in New Issue
Block a user