mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-27 03:36:16 +00:00
forgot break in for loop
This commit is contained in:
parent
58c048f1b0
commit
018330c92c
@ -180,6 +180,7 @@ def get_default_download_dir():
|
|||||||
for line in open(os.path.join(xdg_config_home, 'user-dirs.dirs'), 'r'):
|
for line in open(os.path.join(xdg_config_home, 'user-dirs.dirs'), 'r'):
|
||||||
if not line.startswith('#') and line.startswith('XDG_DOWNLOAD_DIR'):
|
if not line.startswith('#') and line.startswith('XDG_DOWNLOAD_DIR'):
|
||||||
download_dir = os.path.expandvars(line.partition("=")[2].rstrip().strip('"'))
|
download_dir = os.path.expandvars(line.partition("=")[2].rstrip().strip('"'))
|
||||||
|
break
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user