diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 0e4fbde11..3e0f92082 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -443,7 +443,6 @@ PYBIND11_NOINLINE inline std::string error_string() { handle(frame->f_code->co_name).cast() + "\n"; frame = frame->f_back; } - trace = trace->tb_next; } #endif