From 4de4d1e9ef7ab1202779cd6aa2bb0ef80fd10762 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 21 Aug 2012 23:27:32 +0900 Subject: [PATCH] python: handle SPDYLAY_ERR_INVALID_ARGUMENT from in submit_{reply,response} --- python/spdylay.pyx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/spdylay.pyx b/python/spdylay.pyx index e16bf5f9..5cfa0808 100644 --- a/python/spdylay.pyx +++ b/python/spdylay.pyx @@ -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()