From e50e54182d81061d671b03f6336acee6831072b3 Mon Sep 17 00:00:00 2001 From: Griatch Date: Tue, 28 Jan 2020 19:12:09 +0100 Subject: [PATCH] Fix py display of raw tuple. Resolves #2040 --- evennia/commands/default/system.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/evennia/commands/default/system.py b/evennia/commands/default/system.py index 3a2476e186..b6ff6ba25c 100644 --- a/evennia/commands/default/system.py +++ b/evennia/commands/default/system.py @@ -233,6 +233,10 @@ def _run_code_snippet( if ret is None: return + elif isinstance(ret, tuple): + # we must convert here to allow msg to pass it (a tuple is confused + # with a outputfunc structure) + ret = str(ret) for session in sessions: try: