3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-29 06:02:38 +01:00

relay: catch errors on remove_network() and ignore them

This commit is contained in:
James Lu 2016-07-31 20:36:27 -07:00
parent 2c7b5669bd
commit f2a5e1dc78

View File

@ -253,8 +253,10 @@ def spawnRelayServer(irc, remoteirc):
log.exception('(%s) Failed to spawn server for %r (possible jupe?):',
irc.name, remoteirc.name)
# We will just bail here. Disconnect the bad network.
control.remove_network(irc)
try:
control.remove_network(irc)
except KeyError:
pass
return
# Mark the server as a relay server