Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-38660: Add SlackWebException for HTTPX errors #154

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Conversation

rra
Copy link
Member

@rra rra commented Apr 12, 2023

Provide a SlackWebException base exception class, derived from SlackException, which understands how to extract useful information from HTTPX exceptions so that it can be reported to Slack. It also improves the stringification of HTTPX exceptions, which normally may not include the failing URL in the exception stringification.

Unfortunately, automodapi doesn't generate documentation for class or instance methods of exceptions, so the references to from_exception in the docs can't be links to the documentation.

@rra rra requested a review from jonathansick April 12, 2023 00:34
@rra
Copy link
Member Author

rra commented Apr 12, 2023

astropy/sphinx-automodapi#162 is the issue for missing documentation for exceptions.

Provide a SlackWebException base exception class, derived from
SlackException, which understands how to extract useful information
from HTTPX exceptions so that it can be reported to Slack. It also
improves the stringification of HTTPX exceptions, which normally may
not include the failing URL in the exception stringification.

Unfortunately, automodapi doesn't generate documentation for class
or instance methods of exceptions, so the references to from_exception
in the docs can't be links to the documentation.
@rra rra force-pushed the tickets/DM-38660a branch from f4d777f to 44085ac Compare April 12, 2023 18:00
@rra rra enabled auto-merge April 12, 2023 18:00
@rra rra merged commit 654f921 into main Apr 12, 2023
@rra rra deleted the tickets/DM-38660a branch April 12, 2023 18:06
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.

2 participants