This commit is contained in:
Timothy J. Baek
2024-10-03 21:10:33 -07:00
parent 6747478f67
commit b862dff185
9 changed files with 263 additions and 154 deletions

View File

@@ -785,10 +785,7 @@ def process_file(
"content": text_content,
}
except Exception as e:
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail=e,
)
raise e
except Exception as e:
log.exception(e)
if "No pandoc was found" in str(e):
@@ -799,7 +796,7 @@ def process_file(
else:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail=ERROR_MESSAGES.DEFAULT(e),
detail=str(e),
)