From dcacfb0c103d01ba8e6225efcc2707c1e585d1f2 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 3 Feb 2017 18:06:49 -0800 Subject: [PATCH] relay: catch RuntimeError in spawnRelayServer as well This is raised when a network runs out of SIDs, for example. --- plugins/relay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index 311b1b9..37bb640 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -224,7 +224,7 @@ def spawn_relay_server(irc, remoteirc): desc="PyLink Relay network - %s" % (remoteirc.serverdata.get('netname')\ 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?):', irc.name, remoteirc.name) # We will just bail here. Disconnect the bad network.