mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
relay: catch errors on remove_network() and ignore them
(cherry picked from commit f2a5e1dc78
)
This commit is contained in:
parent
9a59c68370
commit
eb2bc68c07
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user