Ipr1 added a comment.

  For future reference: if SDC data doesn't exist following sequence throws 
exception:
  
    wditem = page.data_item()
    sdcdata = wditem.get()
  
  With the fixed version of pywikibot, it is now possible to add SDC data if it 
is missing:
  
    wditem = page.data_item()
    sdcdata = wditem.get_data_for_new_entity()
  
  .. add data ..

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

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

To: Zache, Ipr1
Cc: Ipr1, pywikibot-bugs-list, Aklapper, Zache, Isabelladantes1983, 
Themindcoder, Adamm71, Jersione, Hellket777, LisafBia6531, 786, Biggs657, 
PotsdamLamb, Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, 
Beast1978, Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, 
CucyNoiD, Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, 
MayS, Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Neuronton, 
Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to