From 27daf8b46cb79f6eb4546722e163b7b79abe42de Mon Sep 17 00:00:00 2001
From: luxmoggy
Date: Mon, 15 Dec 2014 12:38:02 +0100
Subject: [PATCH] Catch error when speical charactor crashes email send
---
sickbeard/notifiers/emailnotify.py | 25 +++++++++++++++++--------
1 file changed, 17 insertions(+), 8 deletions(-)
diff --git a/sickbeard/notifiers/emailnotify.py b/sickbeard/notifiers/emailnotify.py
index 74d292be..566ae866 100644
--- a/sickbeard/notifiers/emailnotify.py
+++ b/sickbeard/notifiers/emailnotify.py
@@ -29,7 +29,7 @@ import sickbeard
from sickbeard import logger, common
from sickbeard import db
-from sickbeard import encodingKludge as ek
+from sickbeard.encodingKludge import toUnicode
from sickbeard.exceptions import ex
@@ -51,7 +51,7 @@ class EmailNotifier:
ep_name: The name of the episode that was snatched
title: The title of the notification (optional)
"""
- ep_name = ek.ss(ep_name)
+ ep_name = toUnicode(ep_name)
if sickbeard.EMAIL_NOTIFY_ONSNATCH:
show = self._parseEp(ep_name)
@@ -68,7 +68,10 @@ class EmailNotifier:
1) + "
\n\n