yym68686 commited on
Commit
51e9d12
·
1 Parent(s): 6b0ab57
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -124,7 +124,7 @@ async def error_handling_wrapper(generator, status_code=200):
124
  except StopAsyncIteration:
125
  raise HTTPException(status_code=status_code, detail="data: {'error': 'No data returned'}")
126
  except HTTPException as http_exc:
127
- raise http_exc
128
  except Exception as e:
129
  logger.exception(f"Error in error_handling_wrapper: {e}")
130
  raise HTTPException(status_code=status_code, detail=f"Wrapper error: {str(e)}")
 
124
  except StopAsyncIteration:
125
  raise HTTPException(status_code=status_code, detail="data: {'error': 'No data returned'}")
126
  except HTTPException as http_exc:
127
+ raise HTTPException(status_code=status_code, detail=f"Wrapper error: {str(http_exc)}")
128
  except Exception as e:
129
  logger.exception(f"Error in error_handling_wrapper: {e}")
130
  raise HTTPException(status_code=status_code, detail=f"Wrapper error: {str(e)}")