diff --git a/telebot/asyncio_storage/redis_storage.py b/telebot/asyncio_storage/redis_storage.py index bc9ba54..92842ab 100644 --- a/telebot/asyncio_storage/redis_storage.py +++ b/telebot/asyncio_storage/redis_storage.py @@ -5,10 +5,10 @@ import json redis_installed = True try: import aioredis -except: +except ImportError: try: from redis import asyncio as aioredis - except: + except ImportError: redis_installed = False