From 282362c01b67f83ff5cf677ba125a41a6d594f2c Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sat, 15 Nov 2014 17:15:29 +0100 Subject: Update plugins 2 --- pyload/plugins/Plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/plugins/Plugin.py') diff --git a/pyload/plugins/Plugin.py b/pyload/plugins/Plugin.py index 0b8e02512..2d9837b52 100644 --- a/pyload/plugins/Plugin.py +++ b/pyload/plugins/Plugin.py @@ -371,7 +371,7 @@ class Plugin(Base): """ abort and give reason """ if reason: self.pyfile.error = str(reason) - raise Abort #@TODO: Use raise Abort(reason) in 0.4.10 + raise Abort def error(self, reason="", type=""): @@ -389,14 +389,14 @@ class Plugin(Base): """ fail and indicate file is offline """ if reason: self.pyfile.error = str(reason) - raise Fail("offline") #@TODO: Use raise Fail("offline", reason) in 0.4.10 + raise Fail("offline") def tempOffline(self, reason=""): """ fail and indicates file ist temporary offline, the core may take consequences """ if reason: self.pyfile.error = str(reason) - raise Fail("temp. offline") #@TODO: Use raise Fail("temp. offline", reason) in 0.4.10 + raise Fail("temp. offline") def retry(self, max_tries=5, wait_time=1, reason=""): -- cgit v1.2.3