From 02f951d64f6cf716eea007e04ea07b566759bb8b Mon Sep 17 00:00:00 2001
From: Luca <l.dimarino@gmail.com>
Date: Wed, 15 May 2013 20:44:56 +0200
Subject: [PATCH] Print error string if move fail

---
 sickbeard/postProcessor.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sickbeard/postProcessor.py b/sickbeard/postProcessor.py
index 95ddc3b87..c7e3a1597 100644
--- a/sickbeard/postProcessor.py
+++ b/sickbeard/postProcessor.py
@@ -300,8 +300,8 @@ class PostProcessor(object):
                 helpers.moveFile(cur_file_path, new_file_path)
                 helpers.chmodAsParent(new_file_path)
             except (IOError, OSError), e:
-                self._log("Unable to move file "+cur_file_path+" to "+new_file_path+": "+ex(e), logger.ERROR)
-                raise e
+                self._log("Unable to move file "+cur_file_path+" to "+new_file_path+": "+ex(str(e)), logger.ERROR)
+                raise ex(str(e))
                 
         self._combined_file_operation(file_path, new_path, new_base_name, associated_files, action=_int_move, subtitles=subtitles)
                 
-- 
GitLab