mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +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?):',
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user