jenkins-bot submitted this change.

View Change


Approvals: RPI2026F1: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
[bugfix] Fix AttributeError

Change-Id: Ie236bd2b0f2de39371ee0e9d9ec31fbfc3f74df5
---
M pywikibot/page/_wikibase.py
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/pywikibot/page/_wikibase.py b/pywikibot/page/_wikibase.py
index ca4e2f1..f9911cb 100644
--- a/pywikibot/page/_wikibase.py
+++ b/pywikibot/page/_wikibase.py
@@ -342,7 +342,7 @@
for ref_grp_idx, ref_grp in enumerate(updated_references):
for ref_propid, reference in ref_grp['snaks'].items():
for ref_index, ref_stat in enumerate(reference):
- target_ref_grp = claim.references[ref_grp_idx]
+ target_ref_grp = claim.sources[ref_grp_idx]
target_ref_prop = target_ref_grp[ref_propid]
target_ref = target_ref_prop[ref_index]
target_ref.hash = ref_stat['hash']

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ie236bd2b0f2de39371ee0e9d9ec31fbfc3f74df5
Gerrit-Change-Number: 890194
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97@gmail.com>
Gerrit-Reviewer: RPI2026F1 <sarkaraoyan+rpi2026f1@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged