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