Skip to content

Commit

Permalink
Interpret "host not found" as connection loss
Browse files Browse the repository at this point in the history
CURA-7616
  • Loading branch information
nallath committed Aug 3, 2020
1 parent 1ac48b8 commit 8d4bd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UM/TaskManagement/HttpRequestManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def _onRequestError(self, request_data: "HttpRequestData", error: "QNetworkReply
if request_data.reply is not None:
error_string = request_data.reply.errorString()

if error == QNetworkReply.UnknownNetworkError:
if error == QNetworkReply.UnknownNetworkError or QNetworkReply.HostNotFoundError:
self._setInternetReachable(False)
# manager seems not always able to recover from a total loss of network access, so re-create it
self._network_manager = QNetworkAccessManager(self)
Expand Down

0 comments on commit 8d4bd6c

Please sign in to comment.