Skip to content

Commit

Permalink
falcon response data none fix
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Jan 20, 2023
1 parent eefb1d6 commit 1efbf0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openapi_core/contrib/falcon/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def __init__(self, response: Response):

@property
def data(self) -> str:
if self.response.text is None:
return ""
assert isinstance(self.response.text, str)
return self.response.text

Expand Down

0 comments on commit 1efbf0f

Please sign in to comment.