mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-11 12:04:10 +00:00
Fix common.free_space to handle path is None
This commit is contained in:
parent
b193d87499
commit
72753a9ccb
@ -562,7 +562,7 @@ def free_space(path):
|
||||
: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)
|
||||
|
||||
if windows_check():
|
||||
|
Loading…
x
Reference in New Issue
Block a user