From 7a5886ca2c40939aeed95610ccfb6de69c1b372d Mon Sep 17 00:00:00 2001 From: Patrick Hammer Date: Tue, 23 Jun 2020 01:56:45 +0200 Subject: [PATCH] Update: NAR.py: Little fix in case that arg-free operators are used with the Python interface --- misc/Python/NAR.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misc/Python/NAR.py b/misc/Python/NAR.py index e03e2a0a..03f5c5f1 100644 --- a/misc/Python/NAR.py +++ b/misc/Python/NAR.py @@ -19,6 +19,8 @@ def parseTask(s): return M def parseExecution(e): + if "args " not in e: + return {"operator" : e.split(" ")[0], "arguments" : []} return {"operator" : e.split(" ")[0], "arguments" : e.split("args ")[1][1:-1].split(" * ")[1]} def GetRawOutput():