Skip to content

Commit 49c8133

Browse files
Bump the minor-patch group across 1 directory with 7 updates (#1011)
* Bump the minor-patch group across 1 directory with 7 updates Bumps the minor-patch group with 7 updates in the / directory: | Package | From | To | | --- | --- | --- | | [pydantic](https://github.com/pydantic/pydantic) | `2.7.1` | `2.7.2` | | [uvicorn](https://github.com/encode/uvicorn) | `0.29.0` | `0.30.1` | | [atlassian-python-api](https://github.com/atlassian-api/atlassian-python-api) | `3.41.11` | `3.41.13` | | [requests](https://github.com/psf/requests) | `2.32.0` | `2.32.3` | | [coverage](https://github.com/nedbat/coveragepy) | `7.5.1` | `7.5.3` | | [types-requests](https://github.com/python/typeshed) | `2.31.0.20240406` | `2.32.0.20240602` | | [ruff](https://github.com/astral-sh/ruff) | `0.4.4` | `0.4.7` | Updates `pydantic` from 2.7.1 to 2.7.2 - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.7.1...v2.7.2) Updates `uvicorn` from 0.29.0 to 0.30.1 - [Release notes](https://github.com/encode/uvicorn/releases) - [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md) - [Commits](encode/uvicorn@0.29.0...0.30.1) Updates `atlassian-python-api` from 3.41.11 to 3.41.13 - [Release notes](https://github.com/atlassian-api/atlassian-python-api/releases) - [Commits](atlassian-api/atlassian-python-api@3.41.11...3.41.13) Updates `requests` from 2.32.0 to 2.32.3 - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](psf/requests@v2.32.0...v2.32.3) Updates `coverage` from 7.5.1 to 7.5.3 - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@7.5.1...7.5.3) Updates `types-requests` from 2.31.0.20240406 to 2.32.0.20240602 - [Commits](https://github.com/python/typeshed/commits) Updates `ruff` from 0.4.4 to 0.4.7 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.4.4...v0.4.7) --- updated-dependencies: - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-patch - dependency-name: uvicorn dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: atlassian-python-api dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-patch - dependency-name: requests dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-patch - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-patch - dependency-name: types-requests dependency-type: direct:development update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Remove hack now that atlassian-api/atlassian-python-api#1378 was fixed --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mathieu Leplatre <mathieu@mozilla.com>
1 parent 763ab23 commit 49c8133

File tree

4 files changed

+178
-191
lines changed

4 files changed

+178
-191
lines changed

jbi/jira/client.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import json
21
import logging
32
from typing import Collection, Iterable, Optional
43

@@ -64,18 +63,9 @@ def raise_for_status(self, *args, **kwargs):
6463
response.reason,
6564
extra={"body": response.text},
6665
)
67-
if str(exc) == "":
68-
# Some Jira errors are raised as `HTTPError('')`.
69-
# We are trying to turn them into insightful errors here.
70-
try:
71-
content = exc.response.json()
72-
errors = content.get("errors", {})
73-
response_details = ",".join(f"{k}: {v}" for k, v in errors.items())
74-
except json.JSONDecodeError:
75-
response_details = exc.response.text
76-
# Set the exception message so that its str version contains details.
77-
msg = f"HTTP {exc.response.status_code}: {response_details}"
78-
exc.args = (msg,) + exc.args[1:]
66+
# Set the exception message so that its str version contains details.
67+
msg = f"HTTP {exc.response.status_code}: {exc}"
68+
exc.args = (msg,) + exc.args[1:]
7969
raise
8070

8171
get_server_info = instrumented_method(Jira.get_server_info)

0 commit comments

Comments
 (0)