We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37bfb36 commit 9d189e1Copy full SHA for 9d189e1
openapi_core/contrib/aiohttp/responses.py
@@ -14,6 +14,8 @@ def __init__(self, response: web.Response):
14
15
@property
16
def data(self) -> str:
17
+ if self.response.body is None:
18
+ return ""
19
if isinstance(self.response.body, bytes):
20
return self.response.body.decode("utf-8")
21
assert isinstance(self.response.body, str)
0 commit comments