From 72753a9ccb0bdda8d3094691dc64fe2a67be2df9 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Mon, 3 Feb 2014 12:23:11 +0000 Subject: [PATCH] Fix common.free_space to handle path is None --- deluge/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/common.py b/deluge/common.py index a53bb802e..c7f912383 100644 --- a/deluge/common.py +++ b/deluge/common.py @@ -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():