diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 8c9ea02bc..c518169c4 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1577,7 +1577,7 @@ template type_caster &load_type(type_ca throw cast_error("Unable to cast Python instance to C++ type (compile in debug mode for details)"); #else throw cast_error("Unable to cast Python instance of type " + - (std::string) str(handle.get_type()) + " to C++ type '" + type_id() + "''"); + (std::string) str(handle.get_type()) + " to C++ type '" + type_id() + "'"); #endif } return conv;