diff options
| author | 2019-12-11 12:44:35 -0800 | |
|---|---|---|
| committer | 2019-12-11 12:44:35 -0800 | |
| commit | d0f6f794d4fa3dd78ac8be2b95cae669b4587fb3 (patch) | |
| tree | dad5d240809c545a7040fa63e098eb43d48e05fe | |
| parent | Reddit: move BasicAuth instantiation to __init__ (diff) | |
Reddit: use qualified_name attribute when removing the cog
| -rw-r--r-- | bot/cogs/reddit.py | 2 |
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: |