summaryrefslogtreecommitdiff
path: root/src/leap/soledad/server
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2017-10-10 07:53:29 -0300
committerdrebs <drebs@riseup.net>2017-10-10 07:53:40 -0300
commitbf50414cc84f40449c3d469c893554de76b52c87 (patch)
tree636f796925d359e0e0fecf14f0f57a9f896ad58c /src/leap/soledad/server
parent850a0e32f996cdcc6724e3900a40325aae719828 (diff)
[feature] log OS errors when writing blobs
Diffstat (limited to 'src/leap/soledad/server')
-rw-r--r--src/leap/soledad/server/_blobs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/leap/soledad/server/_blobs.py b/src/leap/soledad/server/_blobs.py
index 427c63ca..e0763028 100644
--- a/src/leap/soledad/server/_blobs.py
+++ b/src/leap/soledad/server/_blobs.py
@@ -106,8 +106,8 @@ class FilesystemBlobsBackend(object):
path = self._get_path(user, blob_id, namespace)
try:
mkdir_p(os.path.split(path)[0])
- except OSError:
- pass
+ except OSError as e:
+ logger.warn("Got exception trying to create directory: %r" % e)
if os.path.isfile(path):
# 409 - Conflict
request.setResponseCode(409)