mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-07-03 14:05:26 +02:00
fdcb711399
APIError is a ProviderError subclass, so it was caught by 'except ProviderError: raise' and handled by provider_error_handler, bypassing the generic exception path that uses getattr(e, 'status_code', 500). The test now uses RuntimeError with a dynamically-added status_code attribute to actually test that fallback logic in routes.py. Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>