diff --git a/deluge/common.py b/deluge/common.py index eb2d048d2..99866d071 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -525,7 +525,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():