mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-12 09:17:42 +00:00
This commit adds `error_already_set::matches()` convenience method to check if the exception trapped by `error_already_set` matches a given Python exception type. This will address #700 by providing a less verbose way to check exceptions.