mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-04-25 09:17:55 +02: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())
|
'to force it to load.' % name.capitalize())
|
||||||
return
|
return
|
||||||
except ImportError as e:
|
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))
|
irc.error('No plugin named %s exists.' % utils.str.dqrepr(name))
|
||||||
else:
|
else:
|
||||||
irc.error(str(e))
|
irc.error(str(e))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user