mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Properly format type name in error_already_set()
This commit is contained in:
parent
8706fb9085
commit
392f16ccb8
@ -111,7 +111,7 @@ PYBIND11_NOINLINE inline std::string error_string() {
|
||||
|
||||
std::string errorString;
|
||||
if (type) {
|
||||
errorString += (std::string) handle(type).str();
|
||||
errorString += handle(type).attr("__name__").cast<std::string>();
|
||||
errorString += ": ";
|
||||
}
|
||||
if (value)
|
||||
|
Loading…
Reference in New Issue
Block a user