From 37137d9b54ecba61b2e712cc612766ba231694c1 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 8 May 2010 20:00:41 -0700 Subject: [PATCH] Return 0 in get_free_space if the download_location is invalid --- deluge/core/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index 164a4bdca..636d6b710 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -768,7 +768,10 @@ class Core(component.Component): """ if not path: path = self.config["download_location"] - return deluge.common.free_space(path) + try: + return deluge.common.free_space(path) + except InvalidPathError: + return 0 @export def get_libtorrent_version(self):