jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/752598 )
Change subject: [bugfix] raise ConnectionError if NewConnectionError Errno 8 occurs ......................................................................
[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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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):