mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +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'):
|
||||
if not line.startswith('#') and line.startswith('XDG_DOWNLOAD_DIR'):
|
||||
download_dir = os.path.expandvars(line.partition("=")[2].rstrip().strip('"'))
|
||||
break
|
||||
except IOError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue