jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] raise ConnectionError if NewConnectionError Errno 8 occurs

Bug: T298859
Change-Id: Idd66fb5991183849faa0d3f72340160a973380da
---
M pywikibot/comms/http.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py
index 08099a0..6a99a24 100644
--- a/pywikibot/comms/http.py
+++ b/pywikibot/comms/http.py
@@ -294,7 +294,7 @@
if isinstance(response, requests.ConnectionError):
msg = str(response)
if 'NewConnectionError' in msg \
- and re.search(r'\[Errno (-2|11001)\]', msg):
+ and re.search(r'\[Errno (-2|8|11001)\]', msg):
raise ConnectionError(response)

if isinstance(response, Exception):

To view, visit change 752598. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Idd66fb5991183849faa0d3f72340160a973380da
Gerrit-Change-Number: 752598
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged