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,8 +5,11 @@ import json
|
|||||||
redis_installed = True
|
redis_installed = True
|
||||||
try:
|
try:
|
||||||
import aioredis
|
import aioredis
|
||||||
except:
|
except ImportError:
|
||||||
redis_installed = False
|
try:
|
||||||
|
from redis import asyncio as aioredis
|
||||||
|
except ImportError:
|
||||||
|
redis_installed = False
|
||||||
|
|
||||||
|
|
||||||
class StateRedisStorage(StateStorageBase):
|
class StateRedisStorage(StateStorageBase):
|
||||||
|
Loading…
Reference in New Issue
Block a user