mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-23 17:59:17 +00:00
AutoAdd plugin: Don't try to remove the same path twice!
This commit is contained in:
parent
4d4c6404b1
commit
cfd955a605
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user