Fix error
Browse files
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)}")
|