summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/Plugin.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-27 23:47:47 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-27 23:47:47 +0200
commit95ed76d34290e08876dccce6840c3e09138a2047 (patch)
treed48fd62290c2683575071884ca1ea1c4874e91f3 /module/plugins/internal/Plugin.py
parent[ExtractArchive] Rename archive_password.txt -> passwords.txt (diff)
downloadpyload-95ed76d34290e08876dccce6840c3e09138a2047.tar.xz
Spare code fixes
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r--module/plugins/internal/Plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index e781ca297..52c22b527 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -245,7 +245,7 @@ class Plugin(object):
"""
Fail and give reason
"""
- raise Fail(encode(reason)) #: Move `encode(reason)` to manager in 0.4.10
+ raise Fail(encode(reason)) #@TODO: Remove `encode` in 0.4.10
def error(self, reason="", type=_("Parse")):
@@ -256,7 +256,7 @@ class Plugin(object):
msg += (": %s" % reason.strip()) if reason else ""
msg += _(" | Plugin may be out of date")
- raise Fail(msg)
+ raise Fail(encode(msg)) #@TODO: Remove `encode` in 0.4.10
def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, decode=True, req=None):