Xqt added a comment.

  @WolfgangFahl: I used generate_family_file which created
  
    class Family(family.Family):  # noqa: D101
    
        name = 'smw'
        langs = {
            'en': 'smw.bitplan.com',
        }
    
        def scriptpath(self, code):
            return ''
    
        def protocol(self, code):
            return 'https'
  
  The new behaviour after patch 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/748375 for the following test 
is like the matrix given below (after api cache was cleared):
  
    import pywikibot
    s = pywikibot.Site('en', fam='smw')
    x = s.siteinfo['general']
  
  
  
  | **protocol: ** -> | https                              | http               
                          |
  | **scriptpath: **  |
  | ''                | passes                             | WARNING: Non-JSON 
response received, retries |
  | '/'               | raises ConnectionError immediately | raises 
ConnectionError immediately           |
  |
  
  It could pass if the cache wasn't cleared and the family file was changed 
after a valid request.
  
  Is this new behviour what you expect?

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

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

To: Xqt
Cc: Xqt, pywikibot-bugs-list, Aklapper, WolfgangFahl, 786, Suran38, Biggs657, 
Lalamarie69, 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, Avicennasis, 
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to