MCPcopy Create free account
hub / github.com/pybind/pybind11 / format_message_key_error

Function format_message_key_error

include/pybind11/stl_bind.h:720–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718
719template <typename KeyType>
720str format_message_key_error(const KeyType &key) {
721 object py_key;
722 try {
723 py_key = cast(key);
724 } catch (const std::exception &) {
725 do { // Trick to avoid "empty catch" warning/error.
726 } while (false);
727 }
728 return format_message_key_error_key_object(py_key);
729}
730
731PYBIND11_NAMESPACE_END(detail)
732

Callers 1

bind_mapFunction · 0.85

Calls 2

castFunction · 0.70

Tested by

no test coverage detected