mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Fix0red an exception I forgot to catch.
This commit is contained in:
parent
8194cea4e9
commit
d22449d5a0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user