This commit is contained in:
jxxghp
2023-10-18 19:26:21 +08:00
parent 2e4536edb6
commit 3d34c26731
55 changed files with 142 additions and 137 deletions

View File

@ -151,7 +151,7 @@ class SlackModule(_ModuleBase):
try:
msg_json: dict = json.loads(body)
except Exception as err:
logger.debug(f"解析Slack消息失败{err}")
logger.debug(f"解析Slack消息失败{str(err)}")
return None
if msg_json:
if msg_json.get("type") == "message":

View File

@ -34,7 +34,7 @@ class Slack:
ssl_check_enabled=False,
url_verification_enabled=False)
except Exception as err:
logger.error(f"Slack初始化失败: {err}")
logger.error(f"Slack初始化失败: {str(err)}")
return
self._client = slack_app.client
@ -335,5 +335,5 @@ class Slack:
conversation_id = channel.get("id")
break
except Exception as e:
logger.error(f"查找Slack公共频道失败: {e}")
logger.error(f"查找Slack公共频道失败: {str(e)}")
return conversation_id