mirror of
https://github.com/capnproto/pycapnp.git
synced 2025-03-05 00:41:06 +01:00
Add missing exception handler on to_bytes
This commit is contained in:
parent
7d82dcbfd8
commit
ecd2666f96
1 changed files with 1 additions and 1 deletions
|
@ -869,7 +869,7 @@ cdef class _DynamicStructBuilder:
|
|||
_write_packed_message_to_fd(file.fileno(), self._parent)
|
||||
self._is_written = True
|
||||
|
||||
def to_bytes(_DynamicStructBuilder self):
|
||||
cpdef to_bytes(_DynamicStructBuilder self) except +reraise_kj_exception:
|
||||
"""Returns the struct's containing message as a Python bytes object in the unpacked binary format.
|
||||
|
||||
This is inefficient; it makes several copies.
|
||||
|
|
Loading…
Add table
Reference in a new issue