Meno25 added a comment.

  Thank you, @Xqt for your comment.
  Could you, please, make the bot skip the page (and not crash) when it 
encounters such exceptions?
  As you know, this will save me a lot of time when running the bot on a whole 
namespace instead of having to restart the bot manually every time it crashes.
  
  In T223157#7087348 <https://phabricator.wikimedia.org/T223157#7087348>, @Xqt 
wrote:
  
  > The exception is raised by a interwiki link without a Page title:
  >
  >   >>> pageid [[ar:الصفحة الرئيسية]]
  >   dict_keys(['_link', '_revisions', '_pageid', '_contentmodel', '_isredir', 
'_timestamp', '_revid', '_pageprops', '_templates', '_raw_extracted_templates'])
  >   _pageid 4
  >   <<< pageid [[ar:الصفحة الرئيسية]]
  >   >>> pageid [[af:]]
  >   dict_keys(['_link', '_revisions'])
  >   
  >   0 pages read
  >   0
  
  I am not an expert Python developer but I can see that the Main Page on 
afwikibooks <https://af.wikibooks.org/wiki/Tuisblad> has the text:
  
    [[ar:]]
    [[cs:]]
    [[da:]]
    [[de:]]
  
  So, the afwikibooks Main Page does not load the link to arwikibooks from 
Wikidata.
  Instead, it uses the above empty interwiki link. (Maybe this is why the 
interwiki link is without a Page title?)
  Having an empty interwiki link like the above is still a custom in some 
wikis, so, I want to ask you what is your recommendation here?
  Should we ask afwikibooks admins to remove the empty interwiki links from the 
afwikibooks Main Page?

TASK DETAIL
  https://phabricator.wikimedia.org/T223157

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Meno25
Cc: Meno25, Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, Shalomori123, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to