mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix for XmlToolSource.parse_command() to return None when a command element does not exist or text is empty.
This commit is contained in:
@@ -79,7 +79,7 @@ class XmlToolSource(ToolSource):
|
||||
|
||||
def parse_command(self):
|
||||
command_el = self._command_el
|
||||
return (command_el is not None) and command_el.text
|
||||
return ( ( command_el is not None ) and command_el.text ) or None
|
||||
|
||||
def parse_interpreter(self):
|
||||
command_el = self._command_el
|
||||
|
||||
Reference in New Issue
Block a user