diff --git a/gql/transport/aiohttp.py b/gql/transport/aiohttp.py index be22ce9c..6455e2d8 100644 --- a/gql/transport/aiohttp.py +++ b/gql/transport/aiohttp.py @@ -147,7 +147,7 @@ def connection_lost(exc, orig_lost): all_is_lost.set() def eof_received(orig_eof_received): - try: + try: # pragma: no cover orig_eof_received() except AttributeError: # pragma: no cover # It may happen that eof_received() is called after diff --git a/gql/transport/phoenix_channel_websockets.py b/gql/transport/phoenix_channel_websockets.py index d5585807..08cde8cc 100644 --- a/gql/transport/phoenix_channel_websockets.py +++ b/gql/transport/phoenix_channel_websockets.py @@ -342,9 +342,8 @@ def _validate_data_response(d: Any, label: str) -> dict: elif status == "timeout": raise TransportQueryError("reply timeout", query_id=answer_id) - else: - # missing or unrecognized status, just continue - pass + + # In case of missing or unrecognized status, just continue elif event == "phx_error": # Sent if the channel has crashed