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