summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Plugin.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-10 17:37:39 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-10 17:37:39 +0100
commitb935526d3186cc09e5d0377c8f38eb53a10f6a5e (patch)
tree59d2e8b4e2c14499ec0b021c1c92dfb998442636 /module/plugins/internal/Plugin.py
parent[Misc] fix #2280 (diff)
downloadpyload-b935526d3186cc09e5d0377c8f38eb53a10f6a5e.tar.xz
[Plugin] fix #2260
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r--module/plugins/internal/Plugin.py9
1 files changed, 7 insertions, 2 deletions
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)