summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-09-18 12:31:48 -0300
committerdrebs <drebs@leap.se>2013-09-18 12:31:48 -0300
commit7c79cc16e488bc7042175f301a3b98f1f5fe3aaf (patch)
tree1b4d8af14e0a1a7e1f463513c84753daf5db1b36 /client
parentbdfab552ee6352ae1c4407dd3d46640d77f0389b (diff)
parentf416fa8c80cab57aa26bc5c55bb26a9f1e62f248 (diff)
Merge remote-tracking branch 'kalikaneko/feature/remove_unneeded_logging' into develop
Diffstat (limited to 'client')
-rw-r--r--client/src/leap/soledad/client/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/__init__.py b/client/src/leap/soledad/client/__init__.py
index 0976d346..4c6a41fc 100644
--- a/client/src/leap/soledad/client/__init__.py
+++ b/client/src/leap/soledad/client/__init__.py
@@ -345,8 +345,9 @@ class Soledad(object):
lambda x: os.path.dirname(x),
[self._local_db_path, self._secrets_path])
for path in paths:
- logger.info('Creating directory: %s.' % path)
try:
+ if not os.path.isdir(path):
+ logger.info('Creating directory: %s.' % path)
os.makedirs(path)
except OSError as exc:
if exc.errno == errno.EEXIST and os.path.isdir(path):