From 967f0a6a78dd3f3678d960510e5f9401884c048e Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sat, 16 Feb 2008 05:07:07 +0000 Subject: [PATCH] Fix duplicate torrent handling. --- src/core.py | 3 +++ 1 file changed, 3 insertions(+) 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)