summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-05-01 02:29:17 +0200
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-05-01 02:29:17 +0200
commit43a88c533a718151159e96b224e0dd35d9d109da (patch)
treec62c2e302baf65cfaefb020caada214bc885bf81
parent[MegaCoNz] Code cosmetics (diff)
downloadpyload-43a88c533a718151159e96b224e0dd35d9d109da.tar.xz
[Plugin] Add missing skip() function
-rw-r--r--module/plugins/internal/Plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py
index 1147cf890..a7ade9256 100644
--- a/module/plugins/internal/Plugin.py
+++ b/module/plugins/internal/Plugin.py
@@ -153,6 +153,13 @@ class Plugin(object):
os.chown(path, uid, gid)
+ def skip(self, msg):
+ """
+ Skip and give msg
+ """
+ raise Skip(encode(msg)) # @TODO: Remove `encode` in 0.4.10
+
+
def fail(self, msg):
"""
Fail and give msg