jenkins-bot merged this change.
[Bugfix] Fix error: 'Page' object has no attribute 'family'
Change-Id: I254bde7e354dff12fdec1326e2928ebe217ea4f4
---
M pywikibot/page.py
1 file changed, 1 insertion(+), 1 deletion(-)
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)
To view, visit change 413769. To unsubscribe, visit settings.