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

[tor-commits] [chutney/master] avoid crash on older Tor authority versions.



commit d9978e036925267449cf0a2e7d735e202f4e70ef
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Fri Feb 12 09:32:47 2021 -0500

    avoid crash on older Tor authority versions.
---
 lib/chutney/TorNet.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index 043904a..950806e 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -787,6 +787,8 @@ class LocalNodeBuilder(NodeBuilder):
         if os.path.exists(ed_fn):
             s = open(ed_fn).read().strip().split()[1]
             self._env['fingerprint_ed25519'] = s
+        else:
+            self._env['fingerprint_ed25519'] = ""
 
     def _getAltAuthLines(self, hasbridgeauth=False):
         """Return a combination of AlternateDirAuthority,

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