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:
|
except ImportError:
|
||||||
irc.error(msg, 'Sorry, no plugin %s exists.' % plugin)
|
irc.error(msg, 'Sorry, no plugin %s exists.' % plugin)
|
||||||
return
|
return
|
||||||
try:
|
|
||||||
module = imp.load_module(plugin, *moduleInfo)
|
module = imp.load_module(plugin, *moduleInfo)
|
||||||
callback = module.Class()
|
callback = module.Class()
|
||||||
irc.addCallback(callback)
|
irc.addCallback(callback)
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
return
|
|
||||||
except Exception, e:
|
|
||||||
debug.recoverableException()
|
|
||||||
irc.error(msg, debug.exnToString(e))
|
|
||||||
return
|
|
||||||
else:
|
else:
|
||||||
irc.error(msg, conf.replyNoCapability % 'owner')
|
irc.error(msg, conf.replyNoCapability % 'owner')
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user