We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 077c7f5 commit 4f4b4a1Copy full SHA for 4f4b4a1
db/redis.py
@@ -19,6 +19,7 @@ def instance(cls) -> 'RedisDB':
19
@classmethod
20
async def close(cls):
21
if hasattr(cls, 'redis') and cls.redis is not None:
22
+ cls.redis.close()
23
await cls.redis.wait_closed()
24
if cls._instance is not None:
25
cls._instance = None
@@ -76,4 +77,4 @@ async def is_paused(self) -> bool:
76
77
"""Return True if the bot is paused or not"""
78
key = f"{Env.currency_name().lower()}:botpaused"
79
redis = await self.get_redis()
- return (await redis.get(key)) is not None
80
+ return (await redis.get(key)) is not None
0 commit comments