Skip to content

Commit

Permalink
Fix GUI connection to server. Ref GNS3/gns3-server#2411
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmj committed Nov 14, 2024
1 parent 50a10ae commit 5fbba82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gns3/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def _dataReadySlot(self, reply, callback, context):
content_type = reply.header(QtNetwork.QNetworkRequest.ContentTypeHeader)
if content_type == "application/json":
content = content.decode("utf-8")
if context["query_id"] in self._buffer:
if "query_id" in context and context["query_id"] in self._buffer:
content = self._buffer[context["query_id"]] + content
try:
while True:
Expand Down

0 comments on commit 5fbba82

Please sign in to comment.