From a843303812e940ded5788d4cd99e5a89b16af053 Mon Sep 17 00:00:00 2001 From: Nils Vogels Date: Fri, 2 May 2014 23:58:27 +0200 Subject: [PATCH] Only log deletion when we're really deleting --- sickbeard/postProcessor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/postProcessor.py b/sickbeard/postProcessor.py index b4dd21ca..1d93cb81 100644 --- a/sickbeard/postProcessor.py +++ b/sickbeard/postProcessor.py @@ -216,8 +216,8 @@ class PostProcessor(object): # delete the file and any other files which we want to delete for cur_file in file_list: - self._log(u"Deleting file " + cur_file, logger.DEBUG) if ek.ek(os.path.isfile, cur_file): + self._log(u"Deleting file " + cur_file, logger.DEBUG) #check first the read-only attribute file_attribute = ek.ek(os.stat, cur_file)[0] if (not file_attribute & stat.S_IWRITE):