From bc3b0f03b97e6998cd5dc418932b94a1a1eeccf9 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Sat, 3 Oct 2015 16:42:26 -0700 Subject: [PATCH] blocking/transit.py: hush a transient failure Not entirely sure what's going on here, but this is probably safe. --- src/wormhole/blocking/transit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wormhole/blocking/transit.py b/src/wormhole/blocking/transit.py index 718695a..49b6cce 100644 --- a/src/wormhole/blocking/transit.py +++ b/src/wormhole/blocking/transit.py @@ -387,7 +387,8 @@ class Common: def _connector_failed(self, hint): debug("- failed connector %s" % hint) - self._active_connectors.remove(hint) + # XXX this was .remove, and occasionally got KeyError + self._active_connectors.discard(hint) if not self._active_connectors: self._start_relay_connectors()