jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Read correct object in normalizeData

Obviously, we need to read the JSON because
its structure is enforced by _extract_JSON.

Bug: T259426
Change-Id: I9af79c83db288874b734e9fd63c4c32427978aa5
---
M pywikibot/page/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pywikibot/page/__init__.py b/pywikibot/page/__init__.py
index 78d559c..f36513e 100644
--- a/pywikibot/page/__init__.py
+++ b/pywikibot/page/__init__.py
@@ -3921,7 +3921,7 @@
raise ValueError(
"Couldn't determine the site and title of the value: "
'{!r}'.format(json))
- db_name = obj['site']
+ db_name = json['site']
norm_data[db_name] = json
return norm_data


To view, visit change 617856. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I9af79c83db288874b734e9fd63c4c32427978aa5
Gerrit-Change-Number: 617856
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: Urbanecm <martin.urbanec@wikimedia.cz>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged