Skip to content

Commit

Permalink
Revert noexcept because _fatal_error() may raise
Browse files Browse the repository at this point in the history
* __uv_stream_on_read_common()
* __uv_stream_on_read_impl()
* __uv_stream_on_write_impl()
  • Loading branch information
fantix committed Aug 28, 2024
1 parent 8793035 commit d387089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uvloop/handles/stream.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ cdef inline bint __uv_stream_on_read_common(
UVStream sc,
Loop loop,
ssize_t nread,
) noexcept:
):
if sc._closed:
# The stream was closed, there is no reason to
# do any work now.
Expand Down Expand Up @@ -822,7 +822,7 @@ cdef inline void __uv_stream_on_read_impl(
uv.uv_stream_t* stream,
ssize_t nread,
const uv.uv_buf_t* buf,
) noexcept:
):
cdef:
UVStream sc = <UVStream>stream.data
Loop loop = sc._loop
Expand Down Expand Up @@ -853,7 +853,7 @@ cdef inline void __uv_stream_on_read_impl(
cdef inline void __uv_stream_on_write_impl(
uv.uv_write_t* req,
int status,
) noexcept:
):
cdef:
_StreamWriteContext ctx = <_StreamWriteContext> req.data
UVStream stream = <UVStream>ctx.stream
Expand Down

0 comments on commit d387089

Please sign in to comment.