mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-14 05:26:28 +00:00
Do not attempt to move a torrents storage if the destination path does
not exist
This commit is contained in:
parent
961d405921
commit
dfb75d67b9
@ -797,6 +797,9 @@ class Torrent(object):
|
||||
|
||||
def move_storage(self, dest):
|
||||
"""Move a torrent's storage location"""
|
||||
if not os.path.exists(dest):
|
||||
log.error("Could not move storage for torrent %s since %s does not exist!", self.torrent_id, dest)
|
||||
return False
|
||||
try:
|
||||
self.handle.move_storage(dest.encode("utf8"))
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user