aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_core/_bot.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-02-19 21:35:56 +0000
committerGravatar Chris Lovering <[email protected]>2024-03-04 12:35:02 +0000
commitccd94c90d33b7aee85117078576684fab5055ce5 (patch)
treef54d2e3c71f12fe4613026d5a35ceae4dea4bd5a /pydis_core/_bot.py
parentruff lint fix: Run remaining auto-fixable rules (diff)
ruff lint fix: Manual non-breaking changes
Diffstat (limited to 'pydis_core/_bot.py')
-rw-r--r--pydis_core/_bot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_core/_bot.py b/pydis_core/_bot.py
index 56cedb28..365b67b3 100644
--- a/pydis_core/_bot.py
+++ b/pydis_core/_bot.py
@@ -286,7 +286,7 @@ class BotBase(commands.Bot):
try:
await self.ping_services()
- except Exception as e:
+ except Exception as e: # noqa: BLE001
raise StartupError(e)
async def ping_services(self) -> None:
@@ -319,7 +319,7 @@ class BotBase(commands.Bot):
await self._resolver.close()
if getattr(self.stats, "_transport", False):
- self.stats._transport.close()
+ self.stats._transport.close() # noqa: SLF001
if self._statsd_timerhandle:
self._statsd_timerhandle.cancel()