Zache added a comment.

  Would the WbTime. toWikibase() 
<https://github.com/wikimedia/pywikibot/blob/master/pywikibot/_wbtypes.py#L735> 
  be suitable place for warning?
  
  I considered placing it on API call result handling, but it was messy as 
there are multiple ways to do such API calls, and there are no unified error 
messages from the server.
  
  The error message could be something like this if hour, minute or second are 
true:
  
    pywikibot.warning('WbTime warning. It is not possible to enter time values 
more precise than 1 day to Wikibase. Current value is "+2024-02-13T00:10:00Z" . 
See https://phabricator.wikimedia.org/T57755')

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

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

To: Zache
Cc: matej_suchanek, Xqt, pywikibot-bugs-list, Zache, Ipr1, mevo, PotsdamLamb, 
Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, 
Tbscho, KimKelting, MayS, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, 
mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to