• Roman Miroshnychenko's avatar
    Add a method to check Python exception types (#772) · 83a8a977
    Roman Miroshnychenko authored
    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.
    83a8a977
test_exceptions.cpp 5.63 KB