From a8dee089610330f383043ce90acb51254c1af210 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 20 Jul 2022 17:21:40 +0800 Subject: [PATCH] =?UTF-8?q?epic=20=E5=8F=91=E9=80=81=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=99=8D=E7=BA=A7=E4=B8=BA=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epic/main.py | 5 ++++- list.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/epic/main.py b/epic/main.py index d9fce60..7584e0c 100644 --- a/epic/main.py +++ b/epic/main.py @@ -96,7 +96,10 @@ async def epic(message: Message): r = await client.get(game_thumbnail, timeout=10.0) with open("epic.jpg", "wb") as code: code.write(r.content) - await message.reply_photo("epic.jpg", caption=msg, quote=False) + try: + await message.reply_photo("epic.jpg", caption=msg, quote=False) + except Exception: + await message.reply(msg, quote=False) safe_remove("epic.jpg") else: await message.reply(msg, quote=False) diff --git a/list.json b/list.json index f80c86a..fe2cf48 100644 --- a/list.json +++ b/list.json @@ -372,7 +372,7 @@ }, { "name": "epic", - "version": "1.0", + "version": "1.001", "section": "chat", "maintainer": "xtaodada", "size": "5.79 kb",