Skip to content

Comments

refactor: Improve API call error handling in connection module#16

Open
bromnhub wants to merge 1 commit intomainfrom
daily-maintenance-20251223
Open

refactor: Improve API call error handling in connection module#16
bromnhub wants to merge 1 commit intomainfrom
daily-maintenance-20251223

Conversation

@bromnhub
Copy link
Owner

This PR refactors the create_web_call function in vapi_python.py to use requests.raise_for_status() for more robust HTTP error handling. It also includes better exception handling to differentiate between connection errors and API-specific errors, providing more informative messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant