From 64ae0a5db68673bdaab6d3bb20969c435f341d46 Mon Sep 17 00:00:00 2001 From: xbmc Date: Fri, 29 Jun 2012 11:15:59 +0100 Subject: [PATCH] Added some debug code on test for existing dest file --- headphones/postprocessor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/headphones/postprocessor.py b/headphones/postprocessor.py index 3a1e64c2..13af012a 100644 --- a/headphones/postprocessor.py +++ b/headphones/postprocessor.py @@ -418,9 +418,12 @@ def moveFiles(albumpath, release, tracks): except Exception, e: logger.warn('Error renaming %s: %s' % (files, e)) break + else: + logger.info('Destination file doesnt exist: %s' % files) + try: shutil.move(os.path.join(r, files), os.path.join(destination_path, files)) - except shutil.Error, e: + except Exception, e: logger.warn('Error moving file %s: %s' % (files, e)) # Chmod the directories using the folder_format (script courtesy of premiso!)