mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Owner: fix error message when the ImportError comes from the plugin
This commit is contained in:
parent
8595c177dd
commit
c6e54fb1b2
@ -435,7 +435,7 @@ class Owner(callbacks.Plugin):
|
||||
'to force it to load.' % name.capitalize())
|
||||
return
|
||||
except ImportError, e:
|
||||
if name in str(e):
|
||||
if str(e).endswith(' ' + name):
|
||||
irc.error('No plugin named %s exists.' % utils.str.dqrepr(name))
|
||||
else:
|
||||
irc.error(str(e))
|
||||
|
Loading…
Reference in New Issue
Block a user