[Bug 55125] Harvest_template.py aborts when the value is empty
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125 John Mark Vandenberg jay...@gmail.com changed: What|Removed |Added Component|Other scripts |Wikidata -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 55125] Harvest_template.py aborts when the value is empty
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125 John Mark Vandenberg jay...@gmail.com changed: What|Removed |Added Component|General |Other scripts -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 55125] Harvest_template.py aborts when the value is empty
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125 John Mark Vandenberg jay...@gmail.com changed: What|Removed |Added CC||jay...@gmail.com Assignee|pywikipedia-b...@lists.wiki |jay...@gmail.com |media.org | --- Comment #2 from John Mark Vandenberg jay...@gmail.com --- This is still happening in core(rewrite) too. The backtrace looks like Adding Pxx -- None ERROR: AttributeError: 'NoneType' object has no attribute 'getID' Traceback (most recent call last): File scripts/harvest_template.py, line 66, in run self.processPage(page) File scripts/harvest_template.py, line 161, in processPage item.addClaim(claim) File ...pywikibot/page.py, line 2744, in addClaim self.repo.addClaim(self, claim, bot=bot, **kwargs) File ...pywikibot/site.py, line 570, in callee return fn(self, *args, **kwargs) File ...pywikibot/site.py, line 3714, in addClaim params['value'] = json.dumps(claim._formatDataValue()) File ...pywikibot/page.py, line 3056, in _formatDataValue 'numeric-id': self.getTarget().getID(numeric=True)} AttributeError: 'NoneType' object has no attribute 'getID' https://git.wikimedia.org/commit/pywikibot%2Fcore.git/3183452cd1dfaf354c5de4afbd3d9d8e5cf31979 fixed the problem with: if not field or not value: continue The compat harvest code needs a lot of work before it is usable for testing even, so I am not going to try to backport this just yet. Assigning to myself to work on soonish. -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 55125] Harvest_template.py aborts when the value is empty
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125 Maarten Dammers maar...@mdammers.nl changed: What|Removed |Added CC||maar...@mdammers.nl Version|unspecified |compat (1.0) -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 55125] Harvest_template.py aborts when the value is empty
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125 --- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipe...@gmail.com --- - **Group**: confirmed -- rewrite -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
[Bug 55125] Harvest_template.py aborts when the value is empty
https://bugzilla.wikimedia.org/show_bug.cgi?id=55125 Kunal Mehta (Legoktm) legoktm.wikipe...@gmail.com changed: What|Removed |Added See Also||https://sourceforge.net/p/p ||ywikipediabot/bugs/1663 -- You are receiving this mail because: You are on the CC list for the bug. ___ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l