Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  **Problem**
  If mwparserfromhell is not installed an exception is raised:
  
    C:\pwb\GIT\core>py -3.15 -m pwb version -nouser
    
    No module named 'mwparserfromhell'
    Please install it with
    
        pip install mwparserfromhell
    Exception ignored in atexit callback <function flush at 0x000002613132D6F0>:
    Traceback (most recent call last):
      File "C:\pwb\GIT\core\pywikibot\comms\http.py", line 126, in flush
        log('Closing network session.')
        ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\pwb\GIT\core\pywikibot\logging.py", line 270, in log
        logoutput(msg, *args, level=VERBOSE, **kwargs)
        ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "C:\pwb\GIT\core\pywikibot\logging.py", line 129, in logoutput
        _init()
        ~~~~~^^
      File "C:\pwb\GIT\core\pywikibot\logging.py", line 77, in _init
        init_routine()
        ~~~~~~~~~~~~^^
      File "C:\pwb\GIT\core\pywikibot\bot.py", line 463, in init_handlers
        writelogheader()
        ~~~~~~~~~~~~~~^^
      File "C:\pwb\GIT\core\pywikibot\bot.py", line 481, in writelogheader
        _log(f'DATE: {pywikibot.Timestamp.nowutc()} UTC')
                      ^^^^^^^^^^^^^^^^^^^
    AttributeError: module 'pywikibot' has no attribute 'Timestamp'
  
  **Proposal**
  The message should be printed but the exception should pass silenty here.

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

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

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to