summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2014-02-03 12:23:11 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2014-02-09 18:38:18 +0000
commitffc48d381063378934ddcdc2902533ac3fc8a72c (patch)
treeca9e87479ca1efe5d288371f5265214af30b2db5
parentc38b00dd07a036bd6509762cc9c3ea87a15a8108 (diff)
downloaddeluge-ffc48d381063378934ddcdc2902533ac3fc8a72c.tar.gz
deluge-ffc48d381063378934ddcdc2902533ac3fc8a72c.tar.bz2
deluge-ffc48d381063378934ddcdc2902533ac3fc8a72c.zip
Fix common.free_space to handle path is None
-rw-r--r--deluge/common.py2
1 files changed, 1 insertions, 1 deletions
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():