Skip to content

Commit

Permalink
Bump types-requests from 2.30.0.0 to 2.31.0.10 (#230)
Browse files Browse the repository at this point in the history
* Bump types-requests from 2.30.0.0 to 2.31.0.10

Bumps [types-requests](https://github.com/python/typeshed) from 2.30.0.0 to 2.31.0.10.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* linting, handle none response

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniel Ecer <[email protected]>
  • Loading branch information
dependabot[bot] and de-code authored Nov 28, 2023
1 parent 2d349b9 commit 0f38b46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ mypy==1.7.1
httpx==0.25.2
types-bleach==6.1.0.1
types-PyYAML==6.0.12.12
types-requests==2.30.0.0
types-requests==2.31.0.10
2 changes: 1 addition & 1 deletion sciety_labs/app/routers/api/article_recommendation.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def like_s2_recommendations_for_paper(
max_recommendations=limit
)
except requests.exceptions.HTTPError as exception:
status_code = exception.response.status_code
status_code = exception.response.status_code if exception.response else 500
LOGGER.info('Exception retrieving metadata (%r): %r', status_code, exception)
if status_code != 404:
raise
Expand Down
2 changes: 1 addition & 1 deletion sciety_labs/app/routers/articles.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def article_by_article_doi(
.crossref_metadata_provider.get_article_metadata_by_doi(article_doi)
)
except requests.exceptions.HTTPError as exception:
status_code = exception.response.status_code
status_code = exception.response.status_code if exception.response else 500
LOGGER.info('Exception retrieving metadata (%r): %r', status_code, exception)
if status_code != 404:
raise
Expand Down
2 changes: 1 addition & 1 deletion sciety_labs/app/routers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_search_result_page(
)
except requests.exceptions.HTTPError as exc:
error_message = f'Error retrieving search results from provider: {exc}'
status_code = exc.response.status_code
status_code = exc.response.status_code if exc.response else 500
search_result_list_with_article_meta = []
search_result_iterator = iter([])
url_pagination_state = get_url_pagination_state_for_pagination_parameters(
Expand Down

0 comments on commit 0f38b46

Please sign in to comment.