From d929617b9b37536ff6d01fde4efb0d8282271bf6 Mon Sep 17 00:00:00 2001 From: 0xDEADFED5 Date: Fri, 7 Feb 2025 22:27:30 -0800 Subject: [PATCH] stop yielding None, which is an error in Twisted 24 --- evennia/commands/cmdhandler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/evennia/commands/cmdhandler.py b/evennia/commands/cmdhandler.py index be6b9bef1f..2fbeebd9a5 100644 --- a/evennia/commands/cmdhandler.py +++ b/evennia/commands/cmdhandler.py @@ -630,14 +630,12 @@ def cmdhandler( if isinstance(ret, types.GeneratorType): # cmd.func() is a generator, execute progressively _progressive_cmd_run(cmd, ret) - ret = yield ret # note that the _progressive_cmd_run will itself run # the at_post_cmd etc as it finishes; this is a bit of # code duplication but there seems to be no way to # catch the StopIteration here (it's not in the same # frame since this is in a deferred chain) else: - ret = yield ret # post-command hook yield cmd.at_post_cmd()