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

Catch and raise HTTP 403 Forbidden errors #958

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

geographika
Copy link
Contributor

It would have been easier to see the reason for recent failing CI tests (see #956) if an error had been raised when HTTP code 403 was returned.

As HTTP error code is a client error code, I added to the list with 400 and 401 (rather than the server error codes 5xx list).

See also #936.

Note, this could break existing workflows by raising a ServiceException - so comments/thoughts welcome.

@coveralls
Copy link

coveralls commented Nov 7, 2024

Coverage Status

coverage: 60.107% (-0.1%) from 60.254%
when pulling b3dfe7f on geographika:403
into 40cfa45 on geopython:master.

@landryb
Copy link

landryb commented Nov 12, 2024

matches what i had tried in #936, much welcomed !

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.

3 participants