diff --git a/Pilot/pilotCommands.py b/Pilot/pilotCommands.py index a96d8a49..8f52e8ce 100644 --- a/Pilot/pilotCommands.py +++ b/Pilot/pilotCommands.py @@ -507,7 +507,7 @@ def execute(self): try: import json - resourceDict = json.loads(resourceDict.split("\n")[-1]) + resourceDict = json.loads(resourceDict.strip().split("\n")[-1]) except ValueError: self.log.error("The pilot command output is not json compatible.") sys.exit(1)