mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 08:58:38 +00:00
Fix common.free_space to handle path is None
This commit is contained in:
parent
b193d87499
commit
72753a9ccb
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@ def free_space(path):
|
||||||
:raises InvalidPathError: if the path is not valid
|
:raises InvalidPathError: if the path is not valid
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if not os.path.exists(path):
|
if not path or not os.path.exists(path):
|
||||||
raise InvalidPathError("%s is not a valid path" % path)
|
raise InvalidPathError("%s is not a valid path" % path)
|
||||||
|
|
||||||
if windows_check():
|
if windows_check():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue