[tor-commits] [sbws/master] Set _ns to None when there's an exception
pastly at torproject.org
pastly at torproject.org
Wed Jul 11 15:05:40 UTC 2018
commit 5bbb344c420c2b6102e3d927b95fb8b47fa93876
Author: juga0 <juga at 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
More information about the tor-commits
mailing list