Skip to content

fix(py): prefix error messages with variant tag#18

Merged
lostmygithubaccount merged 1 commit intomainfrom
cody/improve-py-error-messages
Apr 6, 2026
Merged

fix(py): prefix error messages with variant tag#18
lostmygithubaccount merged 1 commit intomainfrom
cody/improve-py-error-messages

Conversation

@lostmygithubaccount
Copy link
Copy Markdown
Member

Summary

  • Prefix Python error messages with [connection], [request], or [empty_response] so users can pattern-match on the message string to distinguish error variants
  • Update core.pyi type stubs to document which exceptions (ConnectionError, RuntimeError, ValueError) each function can raise

Generated with Claude Code

…tching

Users can now distinguish error types by matching on "[connection]",
"[request]", or "[empty_response]" prefixes in exception messages.
Type stubs updated to document which exceptions each function raises.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@lostmygithubaccount lostmygithubaccount enabled auto-merge (squash) April 6, 2026 03:43
@lostmygithubaccount lostmygithubaccount merged commit a49364d into main Apr 6, 2026
1 check passed
@lostmygithubaccount lostmygithubaccount deleted the cody/improve-py-error-messages branch April 6, 2026 03:45
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