Skip to content

Commit 24b78ca

Browse files
author
Filip Knefel
committed
Use status code directly from exception
1 parent 7618962 commit 24b78ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unstructured_platform_plugins/etl_uvicorn/api_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def _stream_response():
216216
usage=usage,
217217
message_channels=message_channels,
218218
filedata_meta=filedata_meta_model.model_validate(filedata_meta.model_dump()),
219-
status_code=wrap_error(exc).status_code,
219+
status_code=exc.status_code,
220220
status_code_text=f"[{exc.__class__.__name__}] {exc}",
221221
file_data=request_dict.get("file_data", None),
222222
)

0 commit comments

Comments
 (0)