commit 5bbb344c420c2b6102e3d927b95fb8b47fa93876 Author: juga0 juga@riseup.net Date: Wed Jul 4 07:55:28 2018 +0000
Set _ns to None when there's an exception --- sbws/lib/relaylist.py | 1 + 1 file changed, 1 insertion(+)
diff --git a/sbws/lib/relaylist.py b/sbws/lib/relaylist.py index bafd7b7..bb59a3b 100644 --- a/sbws/lib/relaylist.py +++ b/sbws/lib/relaylist.py @@ -32,6 +32,7 @@ class Relay: self._ns = cont.get_network_status(fp, default=None) except Exception as e: log.exception("Exception trying to get ns %s", e) + self._ns = None if desc is not None: assert isinstance(desc, ServerDescriptor) self._desc = desc