server/info: only ignore FileNotFoundError
This commit is contained in:
parent
eae10680e9
commit
4d4d5e3b6d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue