mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 18:08:39 +00:00
forgot break in for loop
This commit is contained in:
parent
58c048f1b0
commit
018330c92c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue