server/info: only ignore FileNotFoundError

This commit is contained in:
neobooru 2019-09-30 00:29:42 +02:00
parent eae10680e9
commit 4d4d5e3b6d

View file

@ -22,7 +22,7 @@ def _get_disk_usage() -> int:
file_path = os.path.join(dir_path, file_name)
try:
total_size += os.path.getsize(file_path)
except:
except FileNotFoundError:
pass
_cache_time = now
_cache_result = total_size