Skip to content

Commit b0b8d65

Browse files
committed
Update submodule to latest commit
1 parent 463ff4e commit b0b8d65

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

blosc2/blosc2_ext.pyx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ def schunk_from_cframe(cframe, copy=False):
10331033
cdef Py_buffer *buf = <Py_buffer *> malloc(sizeof(Py_buffer))
10341034
PyObject_GetBuffer(cframe, buf, PyBUF_SIMPLE)
10351035
cdef blosc2_schunk *schunk_ = blosc2_schunk_from_buffer(<uint8_t *>buf.buf, buf.len, copy)
1036+
if schunk_ == NULL:
1037+
raise RuntimeError("Could not get the schunk from the cframe")
10361038
schunk = blosc2.SChunk(schunk=PyCapsule_New(schunk_, <char *> "blosc2_schunk*", NULL))
10371039
PyBuffer_Release(buf)
10381040
if not copy:

0 commit comments

Comments
 (0)