From 4527fadf01e21a5ae920204650b6526ba447067d Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 16 Dec 2021 22:48:17 +0800 Subject: [PATCH] [fix] Replace error import in vip by py3.6 --- list.json | 2 +- vip.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/list.json b/list.json index 749e475..5d3d420 100644 --- a/list.json +++ b/list.json @@ -322,7 +322,7 @@ }, { "name": "vip", - "version": "0.71", + "version": "0.711", "section": "chat", "maintainer": "xtaodada", "size": "11.6 kb", diff --git a/vip.py b/vip.py index 2eefcaf..9371993 100644 --- a/vip.py +++ b/vip.py @@ -3,7 +3,10 @@ from redis.exceptions import ConnectionError from requests import get from os import remove from telethon.tl.types import MessageMediaPhoto -from asyncio.exceptions import TimeoutError +try: + from asyncio.exceptions import TimeoutError +except ImportError: + from asyncio.TimeoutError from pagermaid import bot, redis, redis_status from pagermaid.listener import listener from pagermaid.utils import obtain_message, alias_command