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

@@ -45,9 +45,9 @@ class Role(Plugin):
self.roleplays = {}
logger.info("[Role] inited")
except FileNotFoundError:
logger.error(f"[Role] init failed, {config_path} not found")
logger.warn(f"[Role] init failed, {config_path} not found, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/role .")
except Exception as e:
logger.error("[Role] init failed, exception: %s" % e)
logger.warn("[Role] init failed, exception: %s, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/role ." % e)
def get_role(self, name, find_closest=True):
name = name.lower()