Return album path as a list if creating dirs fails

This commit is contained in:
rembo10
2012-10-31 16:26:21 -04:00
parent a5fd5c6881
commit 6968551c42

View File

@@ -519,7 +519,7 @@ def moveFiles(albumpath, release, tracks):
except Exception, e:
logger.error('Could not create lossless folder for %s. (Error: %s)' % (release['AlbumTitle'], e))
if not make_lossy_folder:
return albumpath
return [albumpath]
if make_lossy_folder:
if os.path.exists(lossy_destination_path) and 'album' in last_folder.lower():
@@ -541,7 +541,7 @@ def moveFiles(albumpath, release, tracks):
os.makedirs(lossy_destination_path)
except Exception, e:
logger.error('Could not create folder for %s. Not moving: %s' % (release['AlbumTitle'], e))
return albumpath
return [albumpath]
logger.info('Checking which files we need to move.....')