Fix error if sending string to list_node select callback
This commit is contained in:
parent
b6cf09d48a
commit
f57192f9f1
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)
|
return select(caller, selection)
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.log_trace()
|
logger.log_trace()
|
||||||
else:
|
elif select:
|
||||||
# we assume a string was given, we inject the result into the kwargs
|
# we assume a string was given, we inject the result into the kwargs
|
||||||
# to pass on to the next node
|
# to pass on to the next node
|
||||||
kwargs['selection'] = selection
|
kwargs['selection'] = selection
|
||||||
return str(select)
|
return str(select)
|
||||||
|
# this means the previous node will be re-run with these same kwargs
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _list_node(caller, raw_string, **kwargs):
|
def _list_node(caller, raw_string, **kwargs):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue