enh: empty file handling behaviour

This commit is contained in:
Timothy J. Baek committed 2024-10-26 13:05:54 -07:00
1 parent 25a37baeec
commit e36acd6217
2 files changed
+5 -1

No files matched your search

@@ -76,7 +76,7 @@ def upload_file(file: UploadFile = File(...), user=Depends(get_verified_user)):
file_item = FileModelResponse(
**{
**file_item.model_dump(),
"error": e,
"error": str(e.detail) if hasattr(e, "detail") else str(e),
}
)