Skip to content

Commit fc52b78

Browse files
committed
fix: errors display
1 parent 4054e1a commit fc52b78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/routes/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async def data_send(metadata: str = Form(...), blob: UploadFile = File(...), use
4343
try:
4444
await asyncio.to_thread(data_processor, user_id, recipient, blob_data)
4545
except Exception as e:
46-
raise HTTPException(status_code=400, detail=e)
46+
raise HTTPException(status_code=400, detail=str(e))
4747

4848

4949
return {"status": "success"}

app/routes/federation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def federation_send(metadata: str = Form(...), blob: UploadFile = File(...
4949
try:
5050
await asyncio.to_thread(federation_processor, url, sender, recipient, blob_data)
5151
except Exception as e:
52-
raise HTTPException(status_code=400, detail=e)
52+
raise HTTPException(status_code=400, detail = str(e))
5353

5454

5555
return {"status": "success"}

0 commit comments

Comments
 (0)