Browse Source

Stop crashing when the configured dns_conf is None

Fix on commit c889534 in 21903.
teor 6 years ago
parent
commit
f19023554c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/chutney/TorNet.py

+ 1 - 1
lib/chutney/TorNet.py

@@ -894,7 +894,7 @@ class TorEnviron(chutney.Templating.Environ):
             dns_conf = TorEnviron.DEFAULT_DNS_RESOLV_CONF
         else:
             dns_conf = my['dns_conf']
-        dns_conf = os.path.abspath(my['dns_conf'])
+        dns_conf = os.path.abspath(dns_conf)
         # work around Tor bug #21900, where exits fail when the DNS conf
         # file does not exist, or is a broken symlink
         # (os.path.exists returns False for broken symbolic links)