This commit is contained in:
Timothy J. Baek
2024-10-17 18:42:36 -07:00
parent 7ffa3cb022
commit 6e4820cad8
3 changed files with 18 additions and 5 deletions

View File

@@ -236,10 +236,7 @@ async def delete_folder_by_id(id: str, user=Depends(get_verified_user)):
if result:
return result
else:
raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST,
detail=ERROR_MESSAGES.DEFAULT("Error deleting folder"),
)
raise Exception("Error deleting folder")
except Exception as e:
log.exception(e)
log.error(f"Error deleting folder: {id}")