mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Removed useless try/except block.
This commit is contained in:
parent
1623c594d7
commit
8ab1e9834a
@ -820,16 +820,10 @@ class OwnerCommands(callbacks.Privmsg):
|
||||
except ImportError:
|
||||
irc.error(msg, 'Sorry, no plugin %s exists.' % plugin)
|
||||
return
|
||||
try:
|
||||
module = imp.load_module(plugin, *moduleInfo)
|
||||
callback = module.Class()
|
||||
irc.addCallback(callback)
|
||||
irc.reply(msg, conf.replySuccess)
|
||||
return
|
||||
except Exception, e:
|
||||
debug.recoverableException()
|
||||
irc.error(msg, debug.exnToString(e))
|
||||
return
|
||||
else:
|
||||
irc.error(msg, conf.replyNoCapability % 'owner')
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user