summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-01-02 16:01:56 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2016-01-02 16:01:56 +0100
commit6c75c0363f496df86e9c744a9a946f86f82715fa (patch)
tree53e5b7f906e2b9fb1d853d2b0599be7a8c5c7a3d /module/plugins/internal/Plugin.py
parentTimeout for http request set to 1 minute + report effective url address in he... (diff)
downloadpyload-6c75c0363f496df86e9c744a9a946f86f82715fa.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r--module/plugins/internal/Plugin.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index bbb4e33b8..a8ef9b4f2 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -249,12 +249,7 @@ class Plugin(object):
os.makedirs(os.path.join("tmp", self.classname))
with open(framefile, "wb") as f:
- try:
- html = encode(self.last_html)
- except Exception:
- html = self.last_html
-
- f.write(html)
+ f.write(encode(self.last_html))
except IOError, e:
self.log_error(e)