mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Import aioredis from redis module too
aioredis is available in redis-py as of version 4.2.0rc1: https://github.com/aio-libs/aioredis-py#-aioredis-is-now-in-redis-py-420rc1- Try importing from the new package as well.
This commit is contained in:
parent
b8214d32d5
commit
b86c38367a
@ -6,6 +6,9 @@ redis_installed = True
|
|||||||
try:
|
try:
|
||||||
import aioredis
|
import aioredis
|
||||||
except:
|
except:
|
||||||
|
try:
|
||||||
|
from redis import asyncio as aioredis
|
||||||
|
except:
|
||||||
redis_installed = False
|
redis_installed = False
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user