Commit 83a8a977 authored by Roman Miroshnychenko's avatar Roman Miroshnychenko Committed by Dean Moldovan
Browse files

Add a method to check Python exception types (#772)

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.
parent 37ef74c5
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment