diff options
| author | Rapptz <[email protected]> | 2021-04-10 15:52:53 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-04-10 15:52:53 -0400 |
| commit | 27886e5aa48ce0d120be7c2b8dfe120fecefbb8d (patch) | |
| tree | 155c82fe3800c3ff6fb4ed89ebfa0f871a084061 | |
| parent | Fix Intents resolution in the docs (diff) | |
| download | discord.py-27886e5aa48ce0d120be7c2b8dfe120fecefbb8d.tar.xz discord.py-27886e5aa48ce0d120be7c2b8dfe120fecefbb8d.zip | |
[commands] Remove legacy ExtensionNotFound.original attribute
| -rw-r--r-- | discord/ext/commands/errors.py | 5 |
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) |