Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
leszekhanusz authored Jul 13, 2024
2 parents e6d5b87 + 8c33e8f commit 1301170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion gql/transport/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,9 @@ def _extract_response(self, response: requests.Response) -> Any:
log.info("<<< %s", response.text)

except requests.HTTPError as e:
raise TransportServerError(str(e), e.response.status_code) from e
raise TransportServerError(
str(e), e.response.status_code if e.response is not None else None
) from e

except Exception:
self._raise_invalid_result(str(response.text), "Not a JSON answer")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"check-manifest>=0.42,<1",
"flake8==3.8.1",
"isort==4.3.21",
"mypy==0.910",
"mypy==1.10",
"sphinx>=5.3.0,<6",
"sphinx_rtd_theme>=0.4,<1",
"sphinx-argparse==0.2.5",
Expand Down

0 comments on commit 1301170

Please sign in to comment.