jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/892415 )
Change subject: Revert "[IMPR] flush: log the traceback when exiting by exception" ......................................................................
Revert "[IMPR] flush: log the traceback when exiting by exception"
This reverts commit d90ef8ab9d057d241a8547d446b3d5da127299f0.
Reason for revert: Did not work as indented - only showed the object
Change-Id: Ic50846d7fa4d18c25c56cd387c3cf5b79bbd38e2 --- M pywikibot/comms/http.py 1 file changed, 13 insertions(+), 1 deletion(-)
Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/comms/http.py b/pywikibot/comms/http.py index 1a8f580..7828acf 100644 --- a/pywikibot/comms/http.py +++ b/pywikibot/comms/http.py @@ -115,7 +115,6 @@ session.close()
if hasattr(sys, 'last_type'): - log(sys.last_traceback) critical(f'Exiting due to uncaught exception {sys.last_type}')
log('Network session closed.')