Skip to content

Commit

Permalink
Fix exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Oct 23, 2023
1 parent d620110 commit 26a65d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spox/_value_prop.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def _run_onnxruntime(
session = onnxruntime.InferenceSession(model.SerializeToString(), options)
output_names = [output.name for output in session.get_outputs()]
output_feed = dict(zip(output_names, session.run(None, input_feed)))
except (onnxruntime.capi.onnxruntime_pybind11_state.Fail, Exception) as e:
except Exception as e:
logging.debug(
f"Value propagation in {model} on the ONNX reference implementation failed with - "
f"{type(e).__name__}: {e}"
Expand Down

0 comments on commit 26a65d3

Please sign in to comment.