diff options
Diffstat (limited to 'module/plugins/internal/Plugin.py')
-rw-r--r-- | module/plugins/internal/Plugin.py | 7 |
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 |