Removed useless try/except block.

This commit is contained in:
Jeremy Fincher 2003-03-26 07:01:13 +00:00
parent 1623c594d7
commit 8ab1e9834a

View File

@ -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