From 622814ff2c51c88b38759ec2ee27e86c88490d1b Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Mon, 12 Sep 2016 13:15:49 +0200 Subject: [PATCH] clearer error when run() method not implemented --- luiginlp/engine.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luiginlp/engine.py b/luiginlp/engine.py index 45137cc..abfdf67 100644 --- a/luiginlp/engine.py +++ b/luiginlp/engine.py @@ -342,6 +342,8 @@ def on_success(self): log.info("Produced output " + getattr(self, attrname)().path) return super().on_success() + def run(self): + raise NotImplementedError("No run() method implemented for Task " + self.__class__.__name__) def getcmd(self, *args, **kwargs): if not hasattr(self,'executable'):