jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/890194 )
Change subject: [bugfix] Fix AttributeError ......................................................................
[bugfix] Fix AttributeError
Change-Id: Ie236bd2b0f2de39371ee0e9d9ec31fbfc3f74df5 --- M pywikibot/page/_wikibase.py 1 file changed, 10 insertions(+), 1 deletion(-)
Approvals: RPI2026F1: Looks good to me, but someone else must approve Xqt: Looks good to me, approved jenkins-bot: Verified
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']