Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pygqlc/GraphQLClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
and all its methods.

GQLResponse (type variable): [data[field(string)], errors[message(string),
field?(string)]
field?(string)]]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This docstring change introduces an extra ]. The original ]] was balanced — [data[field(string)], errors[message(string), field?(string)]] has 3 opening and 3 closing brackets. The new ]]] has 4 closing brackets, making it unbalanced.

'''
import traceback
import time
Expand Down Expand Up @@ -737,6 +737,11 @@ def _ping_pong(self):
self._conn.send(PING_JSON)
ping_count += 1
# No need to log normal ping operations
except (BrokenPipeError, OSError):
if not self.closing:
log(LogLevel.WARNING,
'WSS Pipe broken, nothing to ping')
self.wss_conn_halted = True
except Exception as e:
if not self.closing:
log(LogLevel.ERROR,
Expand Down
Loading