atlassian-api / atlassian-python-api

Atlassian Python REST API wrapper
https://atlassian-python-api.readthedocs.io
Apache License 2.0
1.34k stars 661 forks source link

add unauthorized error handling #1228

Closed sreway closed 1 year ago

sreway commented 1 year ago

Add unauthorized error handling if the response body is not json

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage has no change and project coverage change: -0.09% :warning:

Comparison is base (184f87a) 34.51% compared to head (2742034) 34.43%. Report is 2 commits behind head on master.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1228 +/- ## ========================================== - Coverage 34.51% 34.43% -0.09% ========================================== Files 44 44 Lines 8057 8091 +34 Branches 1104 1115 +11 ========================================== + Hits 2781 2786 +5 - Misses 5164 5192 +28 - Partials 112 113 +1 ``` | [Files Changed](https://app.codecov.io/gh/atlassian-api/atlassian-python-api/pull/1228?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [atlassian/confluence.py](https://app.codecov.io/gh/atlassian-api/atlassian-python-api/pull/1228?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-YXRsYXNzaWFuL2NvbmZsdWVuY2UucHk=) | `13.21% <0.00%> (-0.03%)` | :arrow_down: | | [atlassian/rest\_client.py](https://app.codecov.io/gh/atlassian-api/atlassian-python-api/pull/1228?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-YXRsYXNzaWFuL3Jlc3RfY2xpZW50LnB5) | `67.25% <0.00%> (-0.80%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/atlassian-api/atlassian-python-api/pull/1228/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.