Skip to content

Commit 4c206e8

Browse files
committed
bindings for import_error exception
1 parent 2fda9d5 commit 4c206e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/pybind11/detail/common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,7 @@ PYBIND11_RUNTIME_EXCEPTION(key_error, PyExc_KeyError)
681681
PYBIND11_RUNTIME_EXCEPTION(value_error, PyExc_ValueError)
682682
PYBIND11_RUNTIME_EXCEPTION(type_error, PyExc_TypeError)
683683
PYBIND11_RUNTIME_EXCEPTION(buffer_error, PyExc_BufferError)
684+
PYBIND11_RUNTIME_EXCEPTION(import_error, PyExc_ImportError)
684685
PYBIND11_RUNTIME_EXCEPTION(cast_error, PyExc_RuntimeError) /// Thrown when pybind11::cast or handle::call fail due to a type casting error
685686
PYBIND11_RUNTIME_EXCEPTION(reference_cast_error, PyExc_RuntimeError) /// Used internally
686687

0 commit comments

Comments
 (0)