mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-07 21:21:30 +08:00
Fix pylint isinstance-second-argument-not-valid-type warning
This commit is contained in:
parent
8d08aaa2cb
commit
2a15fdb93a
@ -496,7 +496,8 @@ class ASGIProtocol(asyncio.Protocol):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Handle gunicorn_h1c exceptions (different class hierarchy)
|
# Handle gunicorn_h1c exceptions (different class hierarchy)
|
||||||
h1c_exc = ASGIProtocol._h1c_invalid_chunk_extension
|
h1c_exc = ASGIProtocol._h1c_invalid_chunk_extension
|
||||||
if h1c_exc and isinstance(e, h1c_exc):
|
# pylint: disable=isinstance-second-argument-not-valid-type
|
||||||
|
if h1c_exc is not None and isinstance(e, h1c_exc):
|
||||||
self._send_error_response(400, str(e))
|
self._send_error_response(400, str(e))
|
||||||
self._close_transport()
|
self._close_transport()
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user