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

TASK DESCRIPTION

[q]uit option hardly breaks the bot:

No description was given. Add one? ([Y]es, [q]uit): q
Traceback (most recent call last):
  File "C:\pwb\GIT\core\pwb.py", line 263, in <module>
    if not main():
  File "C:\pwb\GIT\core\pwb.py", line 257, in main
    run_python_file(filename, [filename] + args, argvu, file_package)
  File "C:\pwb\GIT\core\pwb.py", line 121, in run_python_file
    main_mod.__dict__)
  File ".\scripts\upload.py", line 196, in <module>
    main()
  File ".\scripts\upload.py", line 193, in main
    bot.run()
  File "C:\pwb\GIT\core\pywikibot\specialbots.py", line 461, in run
    self.upload_file(file_url)
  File "C:\pwb\GIT\core\pywikibot\specialbots.py", line 392, in upload_file
    filename = self.process_filename(file_url)
  File "C:\pwb\GIT\core\pywikibot\specialbots.py", line 348, in process_filename

    u'No description was given. Add one?', [('Yes', 'y')], default='y')) \
  File "C:\pwb\GIT\core\pywikibot\bot.py", line 448, in input_choice
    automatic_quit=automatic_quit, force=force)
  File "C:\pwb\GIT\core\pywikibot\userinterfaces\terminal_interface_base.py", li
ne 392, in input_choice
    raise answer
pywikibot.bot_choice.QuitKeyboardInterrupt
<class 'pywikibot.bot_choice.QuitKeyboardInterrupt'>
CRITICAL: Closing network session.

Provide the try/except/finally clause inside run method or use the default behaviour from BaseBot


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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Sn1per, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to