https://bugzilla.wikimedia.org/show_bug.cgi?id=66619
Bug ID: 66619 Summary: TypeError: list indices must be integers, not str Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Web browser: --- Mobile Platform: ---
File "C:\pywikibot\coredev\rijksmonumenten_import.py", line 106, in run result = self.repo.editEntity(identification, data, summary=summary) File "C:\pywikibot\coredev\pywikibot\site.py", line 566, in callee return fn(self, *args, **kwargs) File "C:\pywikibot\coredev\pywikibot\site.py", line 3750, in editEntity data = req.submit() File "C:\pywikibot\coredev\pywikibot\data\api.py", line 414, in submit message = result["error"]["messages"]["0"]["name"] TypeError: list indices must be integers, not str <type 'exceptions.TypeError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
We use ["0"] and that used to work. Maybe the upstream api was changed? This is a bit hard to reproduce.