summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Resch <andrewresch@gmail.com>2008-02-16 05:07:07 +0000
committerAndrew Resch <andrewresch@gmail.com>2008-02-16 05:07:07 +0000
commit967f0a6a78dd3f3678d960510e5f9401884c048e (patch)
treeef7821feb3282bbcb3352902606449a30b027589
parentce1398f342fa9993775494001cfafd0619a5c83f (diff)
downloaddeluge-967f0a6a78dd3f3678d960510e5f9401884c048e.tar.gz
deluge-967f0a6a78dd3f3678d960510e5f9401884c048e.tar.bz2
deluge-967f0a6a78dd3f3678d960510e5f9401884c048e.zip
Fix duplicate torrent handling.
-rw-r--r--src/core.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index a0ae7efe7..65611cdd6 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1018,6 +1018,9 @@ likely the tracker did not responsd in utf-8."
unique_ID = deluge_core.add_torrent(torrent.filename,
torrent.save_dir,
torrent.compact)
+ except DelugeError, e:
+ to_remove.append(torrent)
+ raise e
except Exception, e:
print "Unable to add torrent: ", e
to_remove.append(torrent)