[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Update settings.py (#721)
commit dece0974e1d7d1affa04c12cd575fa04d2866da9
Author: E.Iosifidis <iosifidise@xxxxxxxxx>
Date: Fri Jan 20 17:30:08 2017 +0200
Update settings.py (#721)
---
ooni/settings.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ooni/settings.py b/ooni/settings.py
index a59664cd..51009fb2 100644
--- a/ooni/settings.py
+++ b/ooni/settings.py
@@ -532,8 +532,8 @@ class OConfig(object):
except Exception:
incoherent.append('tor:control_port')
else:
- conf_unix_socket_path = self.tor.control_port
- if conf_unix_socket_path.lstrip.startswith("unix:"):
+ conf_unix_socket_path = self.tor.control_port.lstrip()
+ if conf_unix_socket_path.startswith("unix:"):
if os.path.exists(conf_unix_socket_path.lstrip("unix:")):
unix_socket_path = conf_unix_socket_path.lstrip("unix:")
else:
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits