Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Raise TypeError in view.run() if op_type is not supported #540

Merged
merged 8 commits into from
Nov 1, 2019
2 changes: 2 additions & 0 deletions dlk/python/dlk/core/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,8 @@ def run(self):

return self.format_string(f"""func_Lookup({inputs_string}, {op.name});""")

raise TypeError(f"{self.op.op_type} is not supported in View.run().")

def render_alias(self, op, input_ops, output_ops):
if len(input_ops) != 1:
self.raise_invalid_args_exception(op, input_ops, output_ops)
Expand Down