mirror of https://github.com/Mikaela/Limnoria.git
Fixed ambiguous error message when some other module is causing the import error.
This commit is contained in:
parent
4a4595146f
commit
46ebfce1cd
|
@ -250,8 +250,11 @@ class OwnerCommands(privmsgs.CapabilityCheckingPrivmsg):
|
|||
return
|
||||
try:
|
||||
module = loadPluginModule(name)
|
||||
except ImportError:
|
||||
except ImportError, e:
|
||||
if name in str(e):
|
||||
irc.error(msg, 'No plugin %s exists.' % name)
|
||||
else:
|
||||
irc.error(msg, debug.exnToString(e))
|
||||
return
|
||||
loadPluginClass(irc, module)
|
||||
irc.reply(msg, conf.replySuccess)
|
||||
|
|
Loading…
Reference in New Issue