Fix0red an exception I forgot to catch.

This commit is contained in:
Jeremy Fincher 2004-08-30 18:21:43 +00:00
parent 8194cea4e9
commit d22449d5a0

View File

@ -818,7 +818,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
else: else:
try: try:
serverPort = conf.supybot.networks.get(network).servers()[0] serverPort = conf.supybot.networks.get(network).servers()[0]
except IndexError: except (registry.NonExistentRegistryEntry, IndexError):
irc.error('A server must be provided if the network is not ' irc.error('A server must be provided if the network is not '
'already registered.') 'already registered.')
return return