Skip to content

Commit

Permalink
Properly raise error in NumpyArrayTransformer
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Mehta <[email protected]>
  • Loading branch information
rahul-theorem committed Aug 31, 2022
1 parent 22580d8 commit 8d85829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flytekit/types/numpy/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def to_python_value(self, ctx: FlyteContext, lv: Literal, expected_python_type:
try:
uri = lv.scalar.blob.uri
except AttributeError:
TypeTransformerFailedError(f"Cannot convert from {lv} to {expected_python_type}")
raise TypeTransformerFailedError(f"Cannot convert from {lv} to {expected_python_type}")

local_path = ctx.file_access.get_random_local_path()
ctx.file_access.get_data(uri, local_path, is_multipart=False)
Expand Down

0 comments on commit 8d85829

Please sign in to comment.