mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Owner: improve error on loading missing plugins
This commit is contained in:
parent
1b2617bf8e
commit
76a5616bbe
@ -196,7 +196,8 @@ class Owner(callbacks.Plugin):
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
e = str(e)
|
e = str(e)
|
||||||
if e.endswith(name):
|
if e.endswith(name):
|
||||||
s = 'No plugin named %s exists.' % utils.str.dqrepr(name)
|
s = 'Failed to load {0}: No plugin named {0} exists.'.format(
|
||||||
|
utils.str.dqrepr(name))
|
||||||
elif "No module named 'config'" in e:
|
elif "No module named 'config'" in e:
|
||||||
s = ("Failed to load %s: This plugin is incompatible "
|
s = ("Failed to load %s: This plugin is incompatible "
|
||||||
"with your current Python version. If this error is appearing "
|
"with your current Python version. If this error is appearing "
|
||||||
|
Loading…
Reference in New Issue
Block a user