Skip to content

Commit 7f5abc9

Browse files
committed
maybe this one liner
1 parent 51c28a3 commit 7f5abc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.35" # pragma: no cover
1+
__version__ = "0.0.36" # pragma: no cover

unstructured_platform_plugins/etl_uvicorn/api_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ async def _stream_response():
217217
message_channels=message_channels,
218218
filedata_meta=filedata_meta_model.model_validate(filedata_meta.model_dump()),
219219
status_code=exc.status_code,
220-
status_code_text=exc.detail,
220+
status_code_text=json.dumps(exc.detail) if isinstance(exc.detail, dict) else exc.detail,
221221
file_data=request_dict.get("file_data", None),
222222
)
223223
except UnrecoverableException as ex:

0 commit comments

Comments
 (0)