jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/327551 )
Change subject: Fix regex for error message in siteinfo request ......................................................................
Fix regex for error message in siteinfo request
Allow new format of error message introduced in https://phabricator.wikimedia.org/rMW4e6810e4a
Bug: T153325 Change-Id: I1e2e7dbd711f385fd6ee891f08fa016ddc8fb38c --- M pywikibot/site.py 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: Dalba: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py index 92245fd..12a40f4 100644 --- a/pywikibot/site.py +++ b/pywikibot/site.py @@ -1402,8 +1402,8 @@ All values of the siteinfo property 'general' are directly available. """
- WARNING_REGEX = re.compile(u"^Unrecognized values? for parameter " - u"'siprop': ([^,]+(?:, [^,]+)*)$") + WARNING_REGEX = re.compile('^Unrecognized values? for parameter ' + '["']siprop["']: (.+?).?$')
# Until we get formatversion=2, we have to convert empty-string properties # into booleans so they are easier to use.
pywikibot-commits@lists.wikimedia.org