plugins : provide help url when plugin init failed

This commit is contained in:
lanvent
2023-03-26 15:27:15 +08:00
parent b3cabd9621
commit 167f10c9f9
3 changed files with 5 additions and 5 deletions

View File

@@ -30,9 +30,9 @@ class SDWebUI(Plugin):
self.handlers[Event.ON_HANDLE_CONTEXT] = self.on_handle_context
logger.info("[SD] inited")
except FileNotFoundError:
logger.error(f"[SD] init failed, {config_path} not found")
logger.warn(f"[SD] init failed, {config_path} not found, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/sdwebui .")
except Exception as e:
logger.error("[SD] init failed, exception: %s" % e)
logger.warn("[SD] init failed, exception: %s, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/sdwebui ." % e)
def on_handle_context(self, e_context: EventContext):