Skip to content

Commit

Permalink
Default nb task resolver msg (#2889)
Browse files Browse the repository at this point in the history
* add additional info to default notebook task resolver

Signed-off-by: Niels Bantilan <[email protected]>

* add object repr to error message

Signed-off-by: Niels Bantilan <[email protected]>

* update string

Signed-off-by: Niels Bantilan <[email protected]>

---------

Signed-off-by: Niels Bantilan <[email protected]>
  • Loading branch information
cosmicBboy authored Nov 1, 2024
1 parent 5bf0acd commit 804dae1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flytekit/core/python_auto_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ def load_task(self, loader_args: List[str]) -> PythonAutoContainerTask:
# verify the loaded_data is of the correct type
if not isinstance(loaded_data, PickledEntity):
raise RuntimeError(
"The loaded data is not of the correct type. Please ensure that the pickle file is not corrupted."
f"The loaded data is not of the correct type. Expected PickledEntity, found {type(loaded_data)}. "
f"Please ensure that the pickle file is not corrupted. Loaded data: {loaded_data}"
)
pickled_object: PickledEntity = loaded_data

Expand Down

0 comments on commit 804dae1

Please sign in to comment.