mirror of
https://github.com/moparisthebest/spdylay
synced 2024-12-22 07:38:52 -05:00
python: handle SPDYLAY_ERR_INVALID_ARGUMENT from in submit_{reply,response}
This commit is contained in:
parent
0be5ac6ffb
commit
4de4d1e9ef
@ -608,6 +608,8 @@ cdef class Session:
|
||||
free(cnv)
|
||||
if rv == 0:
|
||||
return
|
||||
elif rv == cspdylay.SPDYLAY_ERR_INVALID_ARGUMENT:
|
||||
raise InvalidArgumentError(cspdylay.spdylay_strerror(rv))
|
||||
elif rv == cspdylay.SPDYLAY_ERR_NOMEM:
|
||||
raise MemoryError()
|
||||
|
||||
@ -637,6 +639,8 @@ cdef class Session:
|
||||
free(cnv)
|
||||
if rv == 0:
|
||||
return
|
||||
elif rv == cspdylay.SPDYLAY_ERR_INVALID_ARGUMENT:
|
||||
raise InvalidArgumentError(cspdylay.spdylay_strerror(rv))
|
||||
elif rv == cspdylay.SPDYLAY_ERR_NOMEM:
|
||||
raise MemoryError()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user