Magul has uploaded a new change for review. ( 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(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/51/327551/1 diff --git a/pywikibot/site.py b/pywikibot/site.py index 92245fd..e73a3f3 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. -- To view, visit https://gerrit.wikimedia.org/r/327551 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I1e2e7dbd711f385fd6ee891f08fa016ddc8fb38c Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Magul <tomasz.magul...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits