diff --git a/include/pybind11/detail/type_caster_base.h b/include/pybind11/detail/type_caster_base.h index 1ed23fb91..f0d27999f 100644 --- a/include/pybind11/detail/type_caster_base.h +++ b/include/pybind11/detail/type_caster_base.h @@ -506,7 +506,7 @@ error_string(PyObject *exc_type, PyObject *exc_value, PyObject *exc_trace) { result += handle(f_code->co_filename).cast(); result += '('; result += std::to_string(lineno); - result += "):) "; + result += "): "; result += handle(f_code->co_name).cast(); result += '\n'; frame = frame->f_back;