From b935526d3186cc09e5d0377c8f38eb53a10f6a5e Mon Sep 17 00:00:00 2001 From: Nitzo Date: Sun, 10 Jan 2016 18:37:39 +0200 Subject: [Plugin] fix #2260 --- module/plugins/internal/Plugin.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index f84d57105..f8e54ff37 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -21,7 +21,7 @@ from module.plugins.internal.misc import (Config, DB, decode, encode, exists, fi class Plugin(object): __name__ = "Plugin" __type__ = "plugin" - __version__ = "0.65" + __version__ = "0.66" __status__ = "stable" __config__ = [] #: [("name", "type", "desc", "default")] @@ -243,7 +243,12 @@ class Plugin(object): os.makedirs(os.path.join("tmp", self.classname)) with open(framefile, "wb") as f: - f.write(encode(self.last_html)) + try: + html = encode(self.last_html) + except Exception: + html = self.last_html + + f.write(html) except IOError, e: self.log_error(e) -- cgit v1.2.3