[Mlir-commits] [mlir] [mlir][python] Fix Python binding cast diagnostics for nanobind 2.13 (PR #206391)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sun Jun 28 20:45:44 PDT 2026
================
@@ -43,14 +43,15 @@ static void pyListToVector(const nb::sequence &list, std::vector<CType> &result,
for (nb::handle item : list) {
try {
result.push_back(nb::cast<PyType>(item));
- } catch (nb::cast_error &err) {
+ } catch (std::exception &err) {
----------------
PragmaTwice wrote:
Will `std::exception` be too broad to catch exceptions from `push_back` like `bad_alloc`? I might be overthinking it though.
https://github.com/llvm/llvm-project/pull/206391
More information about the Mlir-commits
mailing list