More temp dir stuff

This commit is contained in:
Ade
2017-03-11 08:38:42 +13:00
parent 36ad37f005
commit 697e695f7d

View File

@@ -656,6 +656,7 @@ def preserve_torrent_directory(albumpath, forced=False):
logger.error(
"Looks like a temp directory has previously been created for this albumpath, not continuing " + workdir.decode(
headphones.SYS_ENCODING, 'replace'))
shutil.rmtree(new_folder)
return None
except Exception as e:
logger.warn("Cannot determine if already copied/processed, will copy anyway: Warning: " + str(e))