Last modified: 2014-07-24 17:02:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T66497, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 64497 - coordinate_import.py crashes on unknown globe
coordinate_import.py crashes on unknown globe
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
Wikidata (Other open bugs)
core-(2.0)
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-27 08:53 UTC by Maarten Dammers
Modified: 2014-07-24 17:02 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Maarten Dammers 2014-04-27 08:53:12 UTC
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.
Comment 1 Ricordisamoa 2014-07-24 17:02:16 UTC
Fixed in https://gerrit.wikimedia.org/r/132762/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links