From 9c36ea812da7af116e126054bc9891c0fa44fc49 Mon Sep 17 00:00:00 2001 From: ChrisJL Date: Mon, 25 Jul 2022 23:57:57 +0100 Subject: Remove explicit cleanup of the redis session (#111) --- botcore/_bot.py | 3 --- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/botcore/_bot.py b/botcore/_bot.py index e3d9aac3..bb25c0b5 100644 --- a/botcore/_bot.py +++ b/botcore/_bot.py @@ -284,8 +284,5 @@ class BotBase(commands.Bot): if getattr(self.stats, "_transport", False): self.stats._transport.close() - if getattr(self, "redis_session", False): - await self.redis_session.close() - if self._statsd_timerhandle: self._statsd_timerhandle.cancel() diff --git a/pyproject.toml b/pyproject.toml index ca5f0d57..bffaf1b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "bot-core" -version = "8.0.0-beta.3" +version = "8.0.0-beta.4" description = "Bot-Core provides the core functionality and utilities for the bots of the Python Discord community." authors = ["Python Discord "] license = "MIT" -- cgit v1.2.3