Skip to content

Commit

Permalink
clearer error when run() method not implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Sep 12, 2016
1 parent a84cda8 commit 622814f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions luiginlp/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 622814f

Please sign in to comment.