Xqt added a comment.

  The result after this change:
  
    D:\pwb\GIT\core>pwb shell
    Welcome to the Pywikibot interactive shell!
    pwb> pywikibot.config.max_retries = 0
    pwb> s = pywikibot.Site()
    pwb> p = pywikibot.Page(s, 'user:xqt/Test')
    pwb> p.save()
    ERROR: Traceback (most recent call last):
      File "D:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 691, in 
_http_request
        response = http.request(self.site, uri=uri,
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 285, in request
        r = fetch(baseuri, headers=headers, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 460, in fetch
        callback(response)
      File "D:\pwb\GIT\core\pywikibot\comms\http.py", line 335, in 
error_handling_callback
        raise ServerError(response)
    pywikibot.exceptions.ServerError: HTTPConnectionPool(host='wikispot.org', 
port=80): Max retries exceeded with url: /w/api.php (Caused by 
ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 
0x000002428C7B5110>, 'Connection to wikispot.org timed out. (connect 
timeout=6.05)'))
    
    Page [[Benutzer:Xqt/Test]] saved
    pwb> ^Z
    
    Thank you for using Pywikibot; exiting now...
    
    
    D:\pwb\GIT\core>

TASK DETAIL
  https://phabricator.wikimedia.org/T337045

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Xqt
Cc: Xqt, Aklapper, alaa, pywikibot-bugs-list, Meno25, Themindcoder, Adamm71, 
Jersione, Hellket777, LisafBia6531, 786, Biggs657, PotsdamLamb, Jyoo1011, 
JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978, Un1tY, 
Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD, Wenyi, 
Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS, Lewizho99, 
Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to