From bff841fa42dde825c82ca005d70228e7352e42f3 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 28 Jan 2015 12:09:56 -0500 Subject: [PATCH] Fix for XmlToolSource.parse_command() to return None when a command element does not exist or text is empty. --- lib/galaxy/tools/parser/xml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/parser/xml.py b/lib/galaxy/tools/parser/xml.py index 4b2b3c3c84c..b77c33b21ba 100644 --- a/lib/galaxy/tools/parser/xml.py +++ b/lib/galaxy/tools/parser/xml.py @@ -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