zhuyifei1999 added a comment.

Honestly I don't understand why the quit should be a KeyboardInterrupt and not SystemExit, which are both direct sub-exceptions of BaseException. KeyboardInterrupt are almost always for SIGINTs, which may happen in many cases, most commonly CTRL-C, but it is usually an unexpected input and therefore people like a traceback. Script-caused exits should be SystemExit instead, as they are entirely expected, and will not cause a traceback in default sys.excepthook (sys.__excepthook__).


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

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

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

Reply via email to