3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 11:39:25 +01:00

relay: catch errors on remove_network() and ignore them

(cherry picked from commit f2a5e1dc78)
This commit is contained in:
James Lu 2016-07-31 20:36:27 -07:00
parent 9a59c68370
commit eb2bc68c07

View File

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