Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
yym68686 committed Aug 25, 2024
1 parent 6b0ab57 commit 51e9d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def new_generator():
except StopAsyncIteration:
raise HTTPException(status_code=status_code, detail="data: {'error': 'No data returned'}")
except HTTPException as http_exc:
raise http_exc
raise HTTPException(status_code=status_code, detail=f"Wrapper error: {str(http_exc)}")
except Exception as e:
logger.exception(f"Error in error_handling_wrapper: {e}")
raise HTTPException(status_code=status_code, detail=f"Wrapper error: {str(e)}")
Expand Down

0 comments on commit 51e9d12

Please sign in to comment.