From cfd955a6058e67de121799a3fe84d9539ec5cf7b Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sun, 29 May 2011 19:06:54 +0100 Subject: [PATCH] AutoAdd plugin: Don't try to remove the same path twice! --- deluge/plugins/autoadd/autoadd/core.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deluge/plugins/autoadd/autoadd/core.py b/deluge/plugins/autoadd/autoadd/core.py index 791217d6a..e0b3f5b53 100644 --- a/deluge/plugins/autoadd/autoadd/core.py +++ b/deluge/plugins/autoadd/autoadd/core.py @@ -280,12 +280,9 @@ class Core(CorePluginBase): open(copy_torrent_file, 'wb').write( open(filepath, 'rb').read() ) + os.remove(filepath) except OSError, why: raise why - else: - os.remove(filepath) - else: - os.remove(filepath) else: raise why else: