Fix common.free_space to handle path is None

This commit is contained in:
Calum Lind 2014-02-03 12:23:11 +00:00
parent b193d87499
commit 72753a9ccb

View File

@ -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():