Skip to content

Commit 9413470

Browse files
committed
Remove unreachable block
1 parent e883793 commit 9413470

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

openapi_python_client/parser/responses.py

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

241241
content_types.append(MediaType(content_type=content_type, source=source, prop=prop, data=media_type))
242242
if not content_types:
243-
if content:
244-
return (
245-
ParseError(data=data, detail=f"Unsupported content_type {content}"),
246-
schemas,
247-
)
248-
249243
return (
250-
empty_response(
251-
status_code=status_code,
252-
response_name=response_name,
253-
config=config,
254-
data=data,
255-
),
244+
ParseError(data=data, detail=f"Unsupported content_type {content}"),
256245
schemas,
257246
)
258247

0 commit comments

Comments
 (0)