storage.py: unbreak readonly_storage=True on windows

This commit is contained in:
Brian Warner 2008-12-01 19:49:46 -07:00
parent 71c62f8fcb
commit d295a7afb9
1 changed files with 2 additions and 2 deletions

View File

@ -908,9 +908,9 @@ class StorageServer(service.MultiService, Referenceable):
# returns None if it cannot be measured (windows)
try:
disk_avail = self.stat_disk(self.storedir)
except AttributeError:
return None
disk_avail -= self.reserved_space
except AttributeError:
disk_avail = None
if self.readonly_storage:
disk_avail = 0
return disk_avail