mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
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:
|
||||
irc.error(msg, 'No plugin %s exists.' % name)
|
||||
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
Block a user