From 1de90f038e88503565119a0cabe7d6e63ba29234 Mon Sep 17 00:00:00 2001 From: MuelNova Date: Thu, 18 Jul 2024 11:33:26 +0800 Subject: [PATCH] :rotating_light: Makes ruff happy --- arknights_mower/utils/solver.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arknights_mower/utils/solver.py b/arknights_mower/utils/solver.py index 68f94f57d..b6763b1ba 100644 --- a/arknights_mower/utils/solver.py +++ b/arknights_mower/utils/solver.py @@ -929,7 +929,6 @@ def send_message_old( if not token: logger.error("PushPlus的token未配置") return - # img 嵌入 html # if attach_image is not None: @@ -940,7 +939,7 @@ def send_message_old( # img_base64 = base64.b64encode(attachment) # img_url = f"data:image/jpeg;base64,{img_base64.decode('utf-8')}" # img_tag = f'' - + # # 查找 标签的位置 # body_close_tag = '' # insert_position = body.find(body_close_tag) @@ -949,7 +948,6 @@ def send_message_old( # if insert_position != -1: # body = body[:insert_position] + img_tag + body[insert_position:] - url = r"http://www.pushplus.plus/send" data = { "token": token, @@ -957,7 +955,6 @@ def send_message_old( "content": body, "template": "markdown", } - try: response = requests.post(url, json=data)