https://bugzilla.wikimedia.org/show_bug.cgi?id=64497
Bug ID: 64497 Summary: coordinate_import.py crashes on unknown globe 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: ---
Example:
Working on Abaya Lacus Found Q194777 Adding 73.2, 45.6 to Q194777 Traceback (most recent call last): File "/shared/pywikipedia/core/scripts/coordinate_import.py", line 85, in <module> main() File "/shared/pywikipedia/core/scripts/coordinate_import.py", line 82, in main coordbot.run() File "/shared/pywikipedia/core/scripts/coordinate_import.py", line 65, in run item.addClaim(newclaim) File "/shared/pywikipedia/core/pywikibot/page.py", line 2766, in addClaim self.repo.addClaim(self, claim, bot=bot, **kwargs) File "/shared/pywikipedia/core/pywikibot/site.py", line 718, in callee return fn(self, *args, **kwargs) File "/shared/pywikipedia/core/pywikibot/site.py", line 3788, in addClaim params['value'] = json.dumps(claim._formatDataValue()) File "/shared/pywikipedia/core/pywikibot/page.py", line 3081, in _formatDataValue value = self.getTarget().toWikibase() File "/shared/pywikipedia/core/pywikibot/__init__.py", line 159, in toWikibase raise NotImplementedError(u"%s is not supported in Wikibase yet." % self.globe) NotImplementedError: titan is not supported in Wikibase yet.
Bot shouldn't crash, just skip it.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64497
Maarten Dammers maarten@mdammers.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=64495
https://bugzilla.wikimedia.org/show_bug.cgi?id=64497
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ricordisamoa@openmailbox.or | |g Resolution|--- |FIXED
--- Comment #1 from Ricordisamoa ricordisamoa@openmailbox.org --- Fixed in https://gerrit.wikimedia.org/r/132762/
pywikipedia-bugs@lists.wikimedia.org