From e801df0fedcf1412f4337d274e71a4220ffa0fec Mon Sep 17 00:00:00 2001 From: Xtao_dada Date: Sat, 29 Jan 2022 22:44:41 +0800 Subject: [PATCH] silly_girl fix a bug (#212) --- list.json | 2 +- silly_girl.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/list.json b/list.json index 8161683..3085920 100644 --- a/list.json +++ b/list.json @@ -862,7 +862,7 @@ }, { "name": "silly_girl", - "version": "1.01", + "version": "1.02", "section": "chat", "maintainer": "cdle", "size": "3 kb", diff --git a/silly_girl.py b/silly_girl.py index 8b79808..c7c9f30 100644 --- a/silly_girl.py +++ b/silly_girl.py @@ -134,6 +134,9 @@ async def poll(data): persistent_vars["sillyGirl"]['init'] = True await persistent_vars["sillyGirl"]['context'].edit("傻妞连接成功,愉快玩耍吧。") except Exception as e: - await persistent_vars["sillyGirl"]['context'].edit('出错了呜呜呜 ~ 无法访问 傻妞 ') + try: + await persistent_vars["sillyGirl"]['context'].edit('出错了呜呜呜 ~ 无法访问 傻妞 ') + except: + return await asyncio.sleep(1) return