mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-15 14:05:57 +00:00
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:
|
if not path:
|
||||||
path = self.config["download_location"]
|
path = self.config["download_location"]
|
||||||
|
try:
|
||||||
return deluge.common.free_space(path)
|
return deluge.common.free_space(path)
|
||||||
|
except InvalidPathError:
|
||||||
|
return 0
|
||||||
|
|
||||||
@export
|
@export
|
||||||
def get_libtorrent_version(self):
|
def get_libtorrent_version(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user