diff --git a/flytekit/types/numpy/ndarray.py b/flytekit/types/numpy/ndarray.py index cb1cf2a900..b4f67b94f1 100644 --- a/flytekit/types/numpy/ndarray.py +++ b/flytekit/types/numpy/ndarray.py @@ -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)