Page MenuHomePhabricator

MWSite fails with AttributeError instead of RuntimeError
Closed, ResolvedPublic

Description

MWSite('http://www.ecoreality.org/wiki/$1') fails with AttributeError: 'MWSite' object has no attribute 'private_wiki' but it should fail with RuntimeError: Unsupported version: 1.16.2

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as Medium priority.Sep 27 2020, 5:18 PM

Change 630384 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Raise RuntimeError instead of AttributeError for old wikis

https://gerrit.wikimedia.org/r/630384

Change 630384 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Raise RuntimeError instead of AttributeError for old wikis

https://gerrit.wikimedia.org/r/630384