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