Skip to content

Commit 672c34f

Browse files
committed
Remove unreachable block
1 parent 8b51e93 commit 672c34f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

openapi_python_client/parser/responses.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,19 +152,8 @@ def response_from_data( # noqa: PLR0911
152152

153153
content_types.append(MediaType(content_type=content_type, source=source, prop=prop, data=media_type))
154154
if not content_types:
155-
if content:
156-
return (
157-
ParseError(data=data, detail=f"Unsupported content_type {content}"),
158-
schemas,
159-
)
160-
161155
return (
162-
empty_response(
163-
status_code=status_code,
164-
response_name=response_name,
165-
config=config,
166-
data=data,
167-
),
156+
ParseError(data=data, detail=f"Unsupported content_type {content}"),
168157
schemas,
169158
)
170159

0 commit comments

Comments
 (0)