mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 18:47:16 +01:00
Fix error if sending string to list_node select callback
This commit is contained in:
parent
3c2e3f8d63
commit
c97ba87e9b
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue