summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2014-02-09 19:45:28 +0000
committerCalum Lind <calumlind+deluge@gmail.com>2014-02-09 19:45:28 +0000
commit018330c92cf95cf107761440a2f4ee8365f200a0 (patch)
treed75088d1bf8affefe0b103a8570bc2dd338c9709
parent58c048f1b0c9d7b3b1d76c6bdf551534324b8b4b (diff)
downloaddeluge-018330c92cf95cf107761440a2f4ee8365f200a0.tar.gz
deluge-018330c92cf95cf107761440a2f4ee8365f200a0.tar.bz2
deluge-018330c92cf95cf107761440a2f4ee8365f200a0.zip
forgot break in for loop
-rw-r--r--deluge/common.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/deluge/common.py b/deluge/common.py
index 90f440322..1deffd0a9 100644
--- a/deluge/common.py
+++ b/deluge/common.py
@@ -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