mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-25 18:35:26 +00:00
[fix] Replace error import in vip by py3.6
This commit is contained in:
parent
6455fa726c
commit
4527fadf01
@ -322,7 +322,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vip",
|
"name": "vip",
|
||||||
"version": "0.71",
|
"version": "0.711",
|
||||||
"section": "chat",
|
"section": "chat",
|
||||||
"maintainer": "xtaodada",
|
"maintainer": "xtaodada",
|
||||||
"size": "11.6 kb",
|
"size": "11.6 kb",
|
||||||
|
3
vip.py
3
vip.py
@ -3,7 +3,10 @@ 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.exceptions 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
|
||||||
|
Loading…
Reference in New Issue
Block a user