Xqt added a comment.

  In T74305#8476435 <https://phabricator.wikimedia.org/T74305#8476435>, 
@RPI2026F1 wrote:
  
  > Is this not expected behavior if the site is not a Wikibase client? It 
makes no sense trying to run Wikibase-related scripts for something that isn't 
linked to Wikibase.
  
  I think yes. But we can make bot.suggest_help() function a context manager 
and use this within scripts like:
  
    with suggest_help(...):
        bot.run()
  
  and catch the exeption inside instead of doing the propoesed
  
    try:
        bot.run()
    except Exception as e
        suggest_help(exception=e):

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

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

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

Reply via email to