Skip to content

Commit 33f15f1

Browse files
committed
Add tuple to checking for instance
1 parent 24b4afa commit 33f15f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pynest/nest/server/hl_api_server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def do_exec(args, kwargs):
210210
response["stdout"] = "".join(locals_["_print"].txt)
211211

212212
if "return" in kwargs:
213-
if isinstance(kwargs["return"], list):
213+
if isinstance(kwargs["return"], (list, tuple)):
214214
data = dict([(variable, locals_.get(variable, None)) for variable in kwargs["return"]])
215215
else:
216216
data = locals_.get(kwargs["return"], None)

0 commit comments

Comments
 (0)