mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
AutoAdd plugin: Don't try to remove the same path twice!
This commit is contained in:
parent
4d4c6404b1
commit
cfd955a605
1 changed files with 1 additions and 4 deletions
|
@ -280,12 +280,9 @@ class Core(CorePluginBase):
|
||||||
open(copy_torrent_file, 'wb').write(
|
open(copy_torrent_file, 'wb').write(
|
||||||
open(filepath, 'rb').read()
|
open(filepath, 'rb').read()
|
||||||
)
|
)
|
||||||
|
os.remove(filepath)
|
||||||
except OSError, why:
|
except OSError, why:
|
||||||
raise why
|
raise why
|
||||||
else:
|
|
||||||
os.remove(filepath)
|
|
||||||
else:
|
|
||||||
os.remove(filepath)
|
|
||||||
else:
|
else:
|
||||||
raise why
|
raise why
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue