aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-04-10 15:52:53 -0400
committerRapptz <[email protected]>2021-04-10 15:52:53 -0400
commit27886e5aa48ce0d120be7c2b8dfe120fecefbb8d (patch)
tree155c82fe3800c3ff6fb4ed89ebfa0f871a084061
parentFix Intents resolution in the docs (diff)
downloaddiscord.py-27886e5aa48ce0d120be7c2b8dfe120fecefbb8d.tar.xz
discord.py-27886e5aa48ce0d120be7c2b8dfe120fecefbb8d.zip
[commands] Remove legacy ExtensionNotFound.original attribute
-rw-r--r--discord/ext/commands/errors.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/discord/ext/commands/errors.py b/discord/ext/commands/errors.py
index f7e745e0..b825057e 100644
--- a/discord/ext/commands/errors.py
+++ b/discord/ext/commands/errors.py
@@ -813,11 +813,8 @@ class ExtensionNotFound(ExtensionError):
-----------
name: :class:`str`
The extension that had the error.
- original: :class:`NoneType`
- Always ``None`` for backwards compatibility.
"""
- def __init__(self, name, original=None):
- self.original = None
+ def __init__(self, name):
msg = f'Extension {name!r} could not be loaded.'
super().__init__(msg, name=name)