[tor-commits] [ooni-probe/master] Check if the configuration file is a file
art at torproject.org
art at torproject.org
Thu Aug 7 15:15:26 UTC 2014
commit 1b8b310f20ca4b9c8f65c985b6e46006021c4eaf
Author: Arturo Filastò <art at fuffa.org>
Date: Thu Aug 7 17:10:37 2014 +0200
Check if the configuration file is a file
---
ooni/settings.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ooni/settings.py b/ooni/settings.py
index 6f95536..60d0b50 100644
--- a/ooni/settings.py
+++ b/ooni/settings.py
@@ -100,7 +100,7 @@ class OConfig(object):
w.write(line)
def read_config_file(self, check_incoherences=False):
- if not os.path.exists(self.config_file):
+ if not os.path.isfile(self.config_file):
print "Configuration file does not exist."
self._create_config_file()
self.read_config_file()
More information about the tor-commits
mailing list