diff options
Diffstat (limited to 'server/src/leap/soledad')
-rw-r--r-- | server/src/leap/soledad/server/_blobs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/leap/soledad/server/_blobs.py b/server/src/leap/soledad/server/_blobs.py index 956df642..729f213d 100644 --- a/server/src/leap/soledad/server/_blobs.py +++ b/server/src/leap/soledad/server/_blobs.py @@ -151,7 +151,8 @@ class FilesystemBlobsBackend(object): raise NotImplementedError def _get_disk_usage(self, start_path): - assert os.path.isdir(start_path) + if not os.path.isdir(start_path): + return 0 cmd = 'du -c %s | tail -n 1' % start_path size = commands.getoutput(cmd).split()[0] return int(size) |