Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Python 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)] on
win32
Type "help", "copyright", "credits" or "license()" for more information.
import pywikibot
p = pywikibot.Page(pywikibot.Site('wikipedia:en'), 'Talk:Alan Turing')
p.botMayEdit()
Traceback (most recent call last):
File "<pyshell#3>", line 1, in <module>
p.botMayEdit()
File "D:\pwb\GIT\core\pywikibot\page\_basepage.py", line 1179, in
botMayEdit
self._bot_may_edit = self._check_bot_may_edit()
File "D:\pwb\GIT\core\pywikibot\page\_basepage.py", line 1196, in
_check_bot_may_edit
templates = self.templatesWithParams()
File "D:\pwb\GIT\core\pywikibot\page\_page.py", line 81, in
templatesWithParams
for t in self.templates(namespaces=Namespace.TEMPLATE)}
File "D:\pwb\GIT\core\pywikibot\tools\_deprecate.py", line 508, in wrapper
return func(*args, **kwargs)
File "D:\pwb\GIT\core\pywikibot\page\_basepage.py", line 1685, in
templates
self._templates = set(self.itertemplates(content=content))
File "<frozen _collections_abc>", line 330, in __next__
File "D:\pwb\GIT\core\pywikibot\tools\collections.py", line 279, in send
return next(self._started_gen)
File "D:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 630, in
generator
yield from self._extract_results(resultdata)
File "D:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 572, in
_extract_results
result = self.result(item)
File "D:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 741, in
result
update_page(p, pagedata, self.props)
File "D:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 998, in
update_page
_update_pageid(page, pagedict)
File "D:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 887, in
_update_pageid
raise UnsupportedPageError(page)
pywikibot.exceptions.UnsupportedPageError: Page [[en:Special:Log]] is not
supported due to namespace restriction.
TASK DETAIL
https://phabricator.wikimedia.org/T377651
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho,
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb,
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]