arpy8 commited on
Commit
2fb034a
·
1 Parent(s): 5d0e50a

remove exception handling for error annalysis

Browse files
Files changed (1) hide show
  1. app/main.py +3 -3
app/main.py CHANGED
@@ -196,7 +196,7 @@ async def upload_file(target_variable: str = Form(...),
196
  problem_type: str = Form(...),
197
  metadata_columns: List[str] = Form(...),
198
  file: UploadFile = File(...)):
199
- try:
200
  print(colored(f"Uploading file: {file.filename}", "green"))
201
  with open(file.filename, "wb") as buffer:
202
  buffer.write(await file.read())
@@ -222,8 +222,8 @@ async def upload_file(target_variable: str = Form(...),
222
 
223
  return process_dataset_response
224
 
225
- except Exception as e:
226
- return JSONResponse(content={"message": str(e)}, status_code=500)
227
 
228
  if __name__ == "__main__":
229
  import uvicorn
 
196
  problem_type: str = Form(...),
197
  metadata_columns: List[str] = Form(...),
198
  file: UploadFile = File(...)):
199
+ # try:
200
  print(colored(f"Uploading file: {file.filename}", "green"))
201
  with open(file.filename, "wb") as buffer:
202
  buffer.write(await file.read())
 
222
 
223
  return process_dataset_response
224
 
225
+ # except Exception as e:
226
+ # return JSONResponse(content={"message": str(e)}, status_code=500)
227
 
228
  if __name__ == "__main__":
229
  import uvicorn