summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-08-31 23:11:28 +0100
committerMichael Williamson <mike@zwobble.org>2023-08-31 23:11:28 +0100
commitc2c7ed1f25b51947ebb690f6b8464c78fe83bb2b (patch)
tree48c7ea95718262bf73e75f79e2e3ddceaca7b6b0
parent0642884294b6afeeaa207285e930cd93d3010625 (diff)
Add explicit noexcept to _store_error for Cython 3 compatibility
-rw-r--r--jq.pyx2
1 files changed, 1 insertions, 1 deletions
diff --git a/jq.pyx b/jq.pyx
index bcf8367..0f580c4 100644
--- a/jq.pyx
+++ b/jq.pyx
@@ -172,7 +172,7 @@ cdef jq_state* _compile(object program_bytes, object args) except NULL:
return jq
-cdef void _store_error(void* store_ptr, jv error):
+cdef void _store_error(void* store_ptr, jv error) noexcept:
# TODO: handle errors not of JV_KIND_STRING
cdef _ErrorStore store = <_ErrorStore>store_ptr
if jv_get_kind(error) == JV_KIND_STRING: