Skip to content

Commit 622814f

Browse files
committed
clearer error when run() method not implemented
1 parent a84cda8 commit 622814f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

luiginlp/engine.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ def on_success(self):
342342
log.info("Produced output " + getattr(self, attrname)().path)
343343
return super().on_success()
344344

345+
def run(self):
346+
raise NotImplementedError("No run() method implemented for Task " + self.__class__.__name__)
345347

346348
def getcmd(self, *args, **kwargs):
347349
if not hasattr(self,'executable'):

0 commit comments

Comments
 (0)