fix: send slack message failed

pull/13233/head
feng 2024-05-16 15:20:29 +08:00 committed by Bryan
parent 9168e92669
commit d4c1f93ef6
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class SlackRenderer(mistune.HTMLRenderer):
def strong(self, text):
return '*' + text + '*'
def list(self, text, **kwargs):
def list(self, text, *args, **kwargs):
lines = text.split('\n')
for i, line in enumerate(lines):
if not line:
@ -128,7 +128,7 @@ class Slack:
def send_text(self, user_ids, msg_body):
body = self.convert_to_markdown(msg_body)
logger.info(f'Slack send text: user_ids={user_ids} msg={body}')
logger.info(f'Slack send text: user_ids={user_ids}')
for user_id in user_ids:
body['channel'] = user_id
try: