jenkins-bot submitted this change.
[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.