mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +01:00
relay: catch errors on remove_network() and ignore them
This commit is contained in:
parent
2c7b5669bd
commit
f2a5e1dc78
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user