Fix HTTPException swallowed as 500 in /vantage/export endpoint

Add missing `except HTTPException: raise` guard so intentional 404
responses (e.g. when settings are not configured) are not caught by the
generic Exception handler and re-raised as 500 errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Harshit28j 2026-03-11 14:59:52 +05:30
parent 9cc6df6b8d
commit 622d5dabba

View file

@ -487,6 +487,8 @@ async def vantage_export(
summary=None,
)
except HTTPException:
raise
except Exception as e:
verbose_proxy_logger.error(f"Error performing Vantage export: {str(e)}")
raise HTTPException(