Potential fix for #2355.

This commit is contained in:
Bas Stottelaar
2015-09-10 19:55:33 +02:00
parent b21aef221e
commit 7e0742f29b

View File

@@ -812,7 +812,7 @@ def moveFiles(albumpath, release, tracks):
try:
os.chmod(os.path.normpath(temp_f).encode(headphones.SYS_ENCODING, 'replace'), int(headphones.CONFIG.FOLDER_PERMISSIONS, 8))
except Exception as e:
logger.error("Error trying to change permissions on folder: %s. %s", temp_f, e)
logger.error("Error trying to change permissions on folder: %s. %s", temp_f.decode(headphones.SYS_ENCODING, 'replace'), e)
# If we failed to move all the files out of the directory, this will fail too
try: