Browse Source

[commands] Remove legacy ExtensionNotFound.original attribute

pull/6698/head
Rapptz 4 years ago
parent
commit
27886e5aa4
  1. 5
      discord/ext/commands/errors.py

5
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)

Loading…
Cancel
Save