From c97ba87e9bcd32c36fae3948ee8505ed85210b6e Mon Sep 17 00:00:00 2001 From: Griatch Date: Sun, 22 Apr 2018 13:39:47 +0200 Subject: [PATCH] Fix error if sending string to list_node select callback --- evennia/utils/evmenu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evennia/utils/evmenu.py b/evennia/utils/evmenu.py index f6806c06b8..0de33de348 100644 --- a/evennia/utils/evmenu.py +++ b/evennia/utils/evmenu.py @@ -1045,11 +1045,12 @@ def list_node(option_generator, select=None, pagesize=10): return select(caller, selection) except Exception: logger.log_trace() - else: + elif select: # we assume a string was given, we inject the result into the kwargs # to pass on to the next node kwargs['selection'] = selection return str(select) + # this means the previous node will be re-run with these same kwargs return None def _list_node(caller, raw_string, **kwargs):