Return 0 in get_free_space if the download_location is invalid

This commit is contained in:
Andrew Resch 2010-05-08 20:00:41 -07:00
parent 4fb14b581d
commit 37137d9b54
1 changed files with 4 additions and 1 deletions

View File

@ -768,7 +768,10 @@ class Core(component.Component):
"""
if not path:
path = self.config["download_location"]
try:
return deluge.common.free_space(path)
except InvalidPathError:
return 0
@export
def get_libtorrent_version(self):