Page MenuHomePhabricator

interwikidata.py could not create new item
Open, Stalled, HighPublic

Description

I have [[fa:foo]] and [[en:foo]] both of them doesn't have Item at wikidata. interwikidata.py couldn't create new item and add these two links to it.
for example at here these pages have link to enwiki bot the bot couldn't add the to wikidata.

I checked it's code at try_to_add it returns False for some case so at line 94 we should have this code

if self.getOption('create') and (item is None or item is False):

Event Timeline

Yamaha5 created this task.Sep 29 2017, 10:15 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 29 2017, 10:15 PM
Yamaha5 triaged this task as High priority.Sep 29 2017, 10:16 PM
Yamaha5 added a project: Pywikibot-Announce.
matej_suchanek changed the task status from Open to Stalled.Sep 30 2017, 3:05 PM
matej_suchanek added a subscriber: matej_suchanek.

False means the item should not be created (because of an interwiki conflict). It would be nice if you provided a page where the problem can be reproduced.

Restricted Application added a subscriber: pywikibot-bugs-list. · View Herald TranscriptSep 30 2017, 3:05 PM