diff --git a/SAS/DataManagement/StorageQueryService/cache.py b/SAS/DataManagement/StorageQueryService/cache.py index f5da5b83c5f55ceb53e79ed21a1ffdf41939ed0b..35f0105c927e2f28f7fb07977b7358833d2ec098 100644 --- a/SAS/DataManagement/StorageQueryService/cache.py +++ b/SAS/DataManagement/StorageQueryService/cache.py @@ -428,7 +428,7 @@ class CacheManager: if not self.disk_usage.path_resolver.pathExists(path): result['message'] = 'No such path: %s' % path - result['disk_usage_readable'] = humanreadablesize(result['disk_usage']) + result['disk_usage_readable'] = humanreadablesize(result.get('disk_usage', 0)) logger.info('cache.getDiskUsageForPath result: %s' % result) return result