diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 27989b8a6..380e6eb02 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -740,6 +740,9 @@ class Torrent: 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: