mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 07:34:08 +01:00
Fix incorrect error on loading nonexistent plugin
This commit is contained in:
parent
b8fa70172a
commit
b8ada98df1
@ -436,7 +436,7 @@ class Owner(callbacks.Plugin):
|
||||
'to force it to load.' % name.capitalize())
|
||||
return
|
||||
except ImportError as e:
|
||||
if str(e).endswith(' ' + name):
|
||||
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