Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unhandled exception in set_caster (#772)
`obj_iter` throws `python_error` on failure, but type casters aren't allowed to throw! If you try to from-Python cast an object of a non-iterable type, Python will abort from the unhandled exception coming from a `noexcept` function It looks like the intention here is to handle failure manually (a NULL return from the CPython call), so I did just that
- Loading branch information