Skip to content

Commit 1efbf0f

Browse files
committed
falcon response data none fix
1 parent eefb1d6 commit 1efbf0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openapi_core/contrib/falcon/responses.py

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ def __init__(self, response: Response):
99

1010
@property
1111
def data(self) -> str:
12+
if self.response.text is None:
13+
return ""
1214
assert isinstance(self.response.text, str)
1315
return self.response.text
1416

0 commit comments

Comments
 (0)