mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 08:02:49 +01:00
Merge pull request #548 from GLolol/no-such-plugin
Fix incorrect error on loading nonexistent plugin
This commit is contained in:
commit
066c6d87c8
@ -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…
Reference in New Issue
Block a user