[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [sbws/master] Set _ns to None when there's an exception



commit 5bbb344c420c2b6102e3d927b95fb8b47fa93876
Author: juga0 <juga@xxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits