jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/413769 )
Change subject: [Bugfix] Fix error: 'Page' object has no attribute 'family' ......................................................................
[Bugfix] Fix error: 'Page' object has no attribute 'family'
Change-Id: I254bde7e354dff12fdec1326e2928ebe217ea4f4 --- M pywikibot/page.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Dvorapa: Looks good to me, but someone else must approve Framawiki: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/page.py b/pywikibot/page.py index 79ab31a..9a3321b 100644 --- a/pywikibot/page.py +++ b/pywikibot/page.py @@ -1176,7 +1176,7 @@
# go through all templates and look for any restriction # multiple bots/nobots templates are allowed - restrictions = self.family.edit_restricted_templates.get( + restrictions = self.site.family.edit_restricted_templates.get( self.site.code) for template, params in templates: title = template.title(withNamespace=False)
pywikibot-commits@lists.wikimedia.org