From 6968551c42624e2c3bd405cb85b1fd96e2c6125d Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 31 Oct 2012 16:26:21 -0400 Subject: [PATCH] Return album path as a list if creating dirs fails --- headphones/postprocessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index c514bdf8..d8fe7a20 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -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.....')