mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
fix: int version
This commit is contained in:
parent
e928a38f7e
commit
de704e3048
1 changed files with 1 additions and 1 deletions
|
|
@ -398,7 +398,7 @@ class RedisStorage2(BaseStorage):
|
|||
async def _get_adapter(self) -> AioRedisAdapterBase:
|
||||
"""Get adapter based on aioredis version."""
|
||||
if self._redis is None:
|
||||
redis_version = aioredis.__version__.split(".")[0]
|
||||
redis_version = int(aioredis.__version__.split(".")[0])
|
||||
connection_data = dict(
|
||||
host=self._host,
|
||||
port=self._port,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue