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)

--
To view, visit https://gerrit.wikimedia.org/r/413769
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I254bde7e354dff12fdec1326e2928ebe217ea4f4
Gerrit-Change-Number: 413769
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchane...@gmail.com>
Gerrit-Reviewer: Dvorapa <dvor...@seznam.cz>
Gerrit-Reviewer: Framawiki <framaw...@tools.wmflabs.org>
Gerrit-Reviewer: John Vandenberg <jay...@gmail.com>
Gerrit-Reviewer: Xqt <i...@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
Pywikibot-commits mailing list
Pywikibot-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to