diff --git a/sickbeard/processTV.py b/sickbeard/processTV.py index 5781a4cb..b9cd8187 100644 --- a/sickbeard/processTV.py +++ b/sickbeard/processTV.py @@ -362,12 +362,12 @@ def delete_files(processPath, notwantedFiles): try: ek.ek(os.chmod, cur_file_path, stat.S_IWRITE) except OSError, e: - returnStr += logHelper(u"Cannot change permissions of " + cur_file_path + ': ' + e.strerror, + returnStr += logHelper(u"Cannot change permissions of " + cur_file_path + ': ' + str(e.strerror), logger.DEBUG) try: ek.ek(os.remove, cur_file_path) except OSError, e: - returnStr += logHelper(u"Unable to delete file " + cur_file + ': ' + e.strerror, logger.DEBUG) + returnStr += logHelper(u"Unable to delete file " + cur_file + ': ' + str(e.strerror), logger.DEBUG) def delete_dir(processPath):