fix: avoid channel to generate not support reply

This commit is contained in:
lanvent
2023-04-06 02:05:36 +08:00
parent eaac3e3579
commit 1dff630257
6 changed files with 20 additions and 8 deletions

View File

@@ -40,6 +40,9 @@ class SDWebUI(Plugin):
if e_context['context'].type != ContextType.IMAGE_CREATE:
return
channel = e_context['context'].channel
if ReplyType.IMAGE in channel.NOT_SUPPORT_REPLYTYPE:
return
logger.debug("[SD] on_handle_context. content: %s" %e_context['context'].content)