Skip to content

Commit b6163c0

Browse files
authored
Merge branch 'master' into aiohttp_websockets
2 parents 6336eaa + 8c33e8f commit b6163c0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

gql/transport/requests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ def _extract_response(self, response: requests.Response) -> Any:
381381
log.info("<<< %s", response.text)
382382

383383
except requests.HTTPError as e:
384-
raise TransportServerError(str(e), e.response.status_code) from e
384+
raise TransportServerError(
385+
str(e), e.response.status_code if e.response is not None else None
386+
) from e
385387

386388
except Exception:
387389
self._raise_invalid_result(str(response.text), "Not a JSON answer")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"check-manifest>=0.42,<1",
3030
"flake8==3.8.1",
3131
"isort==4.3.21",
32-
"mypy==0.910",
32+
"mypy==1.10",
3333
"sphinx>=5.3.0,<6",
3434
"sphinx_rtd_theme>=0.4,<1",
3535
"sphinx-argparse==0.2.5",

0 commit comments

Comments
 (0)