3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +01:00

relay: catch RuntimeError in spawnRelayServer as well

This is raised when a network runs out of SIDs, for example.
This commit is contained in:
James Lu 2017-02-03 18:06:49 -08:00
parent b5cf2e8a4e
commit dcacfb0c10

View File

@ -224,7 +224,7 @@ def spawn_relay_server(irc, remoteirc):
desc="PyLink Relay network - %s" % desc="PyLink Relay network - %s" %
(remoteirc.serverdata.get('netname')\ (remoteirc.serverdata.get('netname')\
or remoteirc.name), endburst_delay=3) or remoteirc.name), endburst_delay=3)
except ValueError: # Network not initialized yet, or a server name conflict. except (RuntimeError, ValueError): # Network not initialized yet, or a server name conflict.
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.