Skip to content

Commit

Permalink
Bump the minor-patch group across 1 directory with 7 updates (#1011)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
dependabot[bot] and leplatrem authored Jun 6, 2024
1 parent 763ab23 commit 49c8133
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 191 deletions.
16 changes: 3 additions & 13 deletions jbi/jira/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import json
import logging
from typing import Collection, Iterable, Optional

Expand Down Expand Up @@ -64,18 +63,9 @@ def raise_for_status(self, *args, **kwargs):
response.reason,
extra={"body": response.text},
)
if str(exc) == "":
# Some Jira errors are raised as `HTTPError('')`.
# We are trying to turn them into insightful errors here.
try:
content = exc.response.json()
errors = content.get("errors", {})
response_details = ",".join(f"{k}: {v}" for k, v in errors.items())
except json.JSONDecodeError:
response_details = exc.response.text
# Set the exception message so that its str version contains details.
msg = f"HTTP {exc.response.status_code}: {response_details}"
exc.args = (msg,) + exc.args[1:]
# Set the exception message so that its str version contains details.
msg = f"HTTP {exc.response.status_code}: {exc}"
exc.args = (msg,) + exc.args[1:]
raise

get_server_info = instrumented_method(Jira.get_server_info)
Expand Down
Loading

0 comments on commit 49c8133

Please sign in to comment.