Commit 43e5386c authored by payno's avatar payno
Browse files

[esrftaskgraph][graph] raise error as soon as possible if varinfo is None

parent 7f460588
......@@ -436,6 +436,8 @@ class TaskGraph:
def run(self, varinfo=None):
"""Sequential execution of DAGs"""
if varinfo is None:
raise ValueError("varinfo should not be None")
tasks = dict()
for node in self.topological_sort():
task = self.instantiate_task_static(node, tasks=tasks, varinfo=varinfo)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment