|
|
|
@ -561,12 +561,6 @@ struct error_fetch_and_normalize {
@@ -561,12 +561,6 @@ struct error_fetch_and_normalize {
|
|
|
|
|
+ " failed to obtain the name " |
|
|
|
|
"of the normalized active exception type."); |
|
|
|
|
} |
|
|
|
|
# if defined(PYPY_VERSION_NUM) && PYPY_VERSION_NUM < 0x07030a00 |
|
|
|
|
// This behavior runs the risk of masking errors in the error handling, but avoids a
|
|
|
|
|
// conflict with PyPy, which relies on the normalization here to change OSError to
|
|
|
|
|
// FileNotFoundError (https://github.com/pybind/pybind11/issues/4075).
|
|
|
|
|
m_lazy_error_string = exc_type_name_norm; |
|
|
|
|
# else |
|
|
|
|
if (exc_type_name_norm != m_lazy_error_string) { |
|
|
|
|
std::string msg = std::string(called) |
|
|
|
|
+ ": MISMATCH of original and normalized " |
|
|
|
@ -578,7 +572,6 @@ struct error_fetch_and_normalize {
@@ -578,7 +572,6 @@ struct error_fetch_and_normalize {
|
|
|
|
|
msg += ": " + format_value_and_trace(); |
|
|
|
|
pybind11_fail(msg); |
|
|
|
|
} |
|
|
|
|
# endif |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|