[commands] Remove legacy ExtensionNotFound.original attribute

This commit is contained in:
Rapptz 2021-04-10 15:52:53 -04:00
parent d5ad269b35
commit 27886e5aa4

View File

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