Do not attempt to move a torrents storage if the destination path does
not exist
This commit is contained in:
parent
0d431ae7db
commit
72ec926c1a
|
@ -794,6 +794,9 @@ class Torrent(object):
|
||||||
|
|
||||||
def move_storage(self, dest):
|
def move_storage(self, dest):
|
||||||
"""Move a torrent's storage location"""
|
"""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:
|
try:
|
||||||
self.handle.move_storage(dest.encode("utf8"))
|
self.handle.move_storage(dest.encode("utf8"))
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue