diff options
author | drebs <drebs@riseup.net> | 2017-10-10 07:53:29 -0300 |
---|---|---|
committer | drebs <drebs@riseup.net> | 2017-10-10 07:53:40 -0300 |
commit | bf50414cc84f40449c3d469c893554de76b52c87 (patch) | |
tree | 636f796925d359e0e0fecf14f0f57a9f896ad58c /src/leap | |
parent | 850a0e32f996cdcc6724e3900a40325aae719828 (diff) |
[feature] log OS errors when writing blobs
Diffstat (limited to 'src/leap')
-rw-r--r-- | src/leap/soledad/server/_blobs.py | 4 |
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) |