Added an abort condition to the cmd's funcparts chain.
This commit is contained in:
parent
0121f36ac0
commit
65e370f93b
1 changed files with 3 additions and 1 deletions
|
|
@ -273,7 +273,9 @@ def cmdhandler(caller, raw_string, testing=False):
|
||||||
if hasattr(cmd, "funcparts"):
|
if hasattr(cmd, "funcparts"):
|
||||||
# yield on command parts (for multi-part delayed commands)
|
# yield on command parts (for multi-part delayed commands)
|
||||||
for funcpart in make_iter(cmd.funcparts):
|
for funcpart in make_iter(cmd.funcparts):
|
||||||
yield funcpart()
|
err = yield funcpart()
|
||||||
|
# returning anything but a deferred/None will kill the chain
|
||||||
|
if err: break
|
||||||
|
|
||||||
# post-command hook
|
# post-command hook
|
||||||
yield cmd.at_post_cmd()
|
yield cmd.at_post_cmd()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue