Last modified: 2014-06-14 19:23:59 UTC
>>> import pwb >>> import pywikibot as py >>> s = py.getSite('de') >>> p = py.Page(s, 'Uranus (Planet)') >>> item = py.ItemPage.fromPage(p) >>> item.exists() Traceback (most recent call last): File "<pyshell#11>", line 1, in <module> item.exists() File "pywikibot\page.py", line 2451, in exists self.get() File "pywikibot\page.py", line 2640, in get c = Claim.fromJSON(self.repo, claim) File "pywikibot\page.py", line 2881, in fromJSON data['mainsnak']['datavalue']['value']) File "pywikibot\__init__.py", line 358, in fromWikibase amount = long(wb[u'amount']) ValueError: invalid literal for long() with base 10: '+0.044405586' >>>
Change 135397 had a related patch set uploaded by Xqt: (bug 65758) WbQuantity may represent various value types https://gerrit.wikimedia.org/r/135397
*** Bug 65940 has been marked as a duplicate of this bug. ***
Change 135397 merged by jenkins-bot: (bug 65758) WbQuantity may represent various value types https://gerrit.wikimedia.org/r/135397