Module: deluge Branch: master Commit: cfd955a6058e67de121799a3fe84d9539ec5cf7b
Author: Pedro Algarvio <[email protected]> Date: Sun May 29 19:06:54 2011 +0100 AutoAdd plugin: Don't try to remove the same path twice! --- deluge/plugins/autoadd/autoadd/core.py | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/deluge/plugins/autoadd/autoadd/core.py b/deluge/plugins/autoadd/autoadd/core.py index 791217d..e0b3f5b 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: -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
