aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-12-11 12:44:35 -0800
committerGravatar MarkKoz <[email protected]>2019-12-11 12:44:35 -0800
commitd0f6f794d4fa3dd78ac8be2b95cae669b4587fb3 (patch)
treedad5d240809c545a7040fa63e098eb43d48e05fe
parentReddit: move BasicAuth instantiation to __init__ (diff)
Reddit: use qualified_name attribute when removing the cog
-rw-r--r--bot/cogs/reddit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/reddit.py b/bot/cogs/reddit.py
index 48f636159..111f3b8ab 100644
--- a/bot/cogs/reddit.py
+++ b/bot/cogs/reddit.py
@@ -86,7 +86,7 @@ class Reddit(Cog):
await asyncio.sleep(3)
log.error("Authentication with Reddit API failed. Unloading extension.")
- self.bot.remove_cog(self.__class__.__name__)
+ self.bot.remove_cog(self.qualified_name)
return
async def revoke_access_token(self) -> None: