fix: use try catch instead of config

This commit is contained in:
zhayujie
2023-03-24 00:59:26 +08:00
parent c1d1e923cd
commit 8c4a62b9c6
4 changed files with 9 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ class Banwords(Plugin):
self.handlers[Event.ON_HANDLE_CONTEXT] = self.on_handle_context
logger.info("[Banwords] inited")
except Exception as e:
logger.error("Banwords init failed: %s" % e)
logger.warn("Banwords init failed: %s" % e)