[fix] Replace error import in vip by py3.6

This commit is contained in:
xtaodada 2021-12-16 22:52:25 +08:00
parent 4527fadf01
commit 27a32c81f7
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 5 deletions

View File

@ -322,7 +322,7 @@
}, },
{ {
"name": "vip", "name": "vip",
"version": "0.711", "version": "0.712",
"section": "chat", "section": "chat",
"maintainer": "xtaodada", "maintainer": "xtaodada",
"size": "11.6 kb", "size": "11.6 kb",

5
vip.py
View File

@ -3,10 +3,7 @@ from redis.exceptions import ConnectionError
from requests import get from requests import get
from os import remove from os import remove
from telethon.tl.types import MessageMediaPhoto from telethon.tl.types import MessageMediaPhoto
try: from asyncio import TimeoutError
from asyncio.exceptions import TimeoutError
except ImportError:
from asyncio.TimeoutError
from pagermaid import bot, redis, redis_status from pagermaid import bot, redis, redis_status
from pagermaid.listener import listener from pagermaid.listener import listener
from pagermaid.utils import obtain_message, alias_command from pagermaid.utils import obtain_message, alias_command