Urbanecm created this task. Urbanecm added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Adding link to Q420 991 pages read 0 pages written 0 pages skipped Execution time: 42 seconds Read operation time: 0.0 seconds Script terminated by exception: ERROR: TypeError: 'Page' object is not subscriptable Traceback (most recent call last): File "pwb.py", line 360, in <module> if not main(): File "pwb.py", line 355, in main file_package) File "pwb.py", line 74, in run_python_file main_mod.__dict__) File "./scripts/interwikidata.py", line 245, in <module> main() File "./scripts/interwikidata.py", line 239, in main bot.run() File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/bot.py", line 1417, in run self.treat(page) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/bot.py", line 1702, in treat self.treat_page() File "./scripts/interwikidata.py", line 91, in treat_page item = self.try_to_add() File "./scripts/interwikidata.py", line 188, in try_to_add self.current_page.title(as_link=True, insite=item.site))) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 4855, in setSitelink self.setSitelinks([sitelink], **kwargs) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 4887, in setSitelinks self.editEntity(data, **kwargs) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 120, in wrapper handle(func, self, *args, **kwargs) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 99, in handle func(self, *args, **kwargs) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 4460, in editEntity super().editEntity(data, baserevid=baserevid, **kwargs) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 4176, in editEntity data = self._normalizeData(data) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 4115, in _normalizeData norm_data[key] = attr.normalizeData(data[key]) File "/home/urbanecm/Documents/git/gerrit/pywikibot/core/pywikibot/page/__init__.py", line 3924, in normalizeData db_name = obj['site'] TypeError: 'Page' object is not subscriptable CRITICAL: Exiting due to uncaught exception <class 'TypeError'> urbanecm@titanium (master u=) ~/Documents/git/gerrit/pywikibot/core $ TASK DETAIL https://phabricator.wikimedia.org/T259426 WORKBOARD https://phabricator.wikimedia.org/project/board/87/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Urbanecm Cc: Aklapper, Urbanecm, pywikibot-bugs-list, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs