Return 0 in get_free_space if the download_location is invalid
This commit is contained in:
parent
4fb14b581d
commit
37137d9b54
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue