matej_suchanek added a comment.
It seems Pywikibot has assumed these are always dicts. Just because the containers were empty it didn't fail: self.aliases = {} if 'aliases' in self._content: for lang in self._content['aliases']: self.aliases[lang] = [] for value in self._content['aliases'][lang]: self.aliases[lang].append(value['value']) # labels self.labels = {} if 'labels' in self._content: for lang in self._content['labels']: if 'removed' not in self._content['labels'][lang]: # T56767 self.labels[lang] = self._content['labels'][lang]['value'] # descriptions self.descriptions = {} if 'descriptions' in self._content: for lang in self._content['descriptions']: self.descriptions[lang] = self._content[ 'descriptions'][lang]['value'] Not actually tested yet. TASK DETAIL https://phabricator.wikimedia.org/T219891 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: matej_suchanek Cc: matej_suchanek, Aklapper, pywikibot-bugs-list, Ladsgroup, Multichill, alaa_wmde, Nandana, Wenyi, Lahi, Gq86, GoranSMilovanovic, QZanden, Tbscho, MayS, LawExplorer, Mdupont, JJMC89, _jensen, rosalieper, Avicennasis, mys_721tx, Wikidata-bugs, aude, jayvdb, Ricordisamoa, Dalba, Masti, Alchimista, Mbch331, Rxy
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs