mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1688 from ananthb/patch-1
Import aioredis from redis module too
This commit is contained in:
commit
095bf03227
@ -5,7 +5,10 @@ import json
|
||||
redis_installed = True
|
||||
try:
|
||||
import aioredis
|
||||
except:
|
||||
except ImportError:
|
||||
try:
|
||||
from redis import asyncio as aioredis
|
||||
except ImportError:
|
||||
redis_installed = False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user