jenkins-bot has submitted this change and it was merged.
Change subject: archivebot: print exception itself ......................................................................
archivebot: print exception itself
Change-Id: I3f38cddcbaf7b4a73c91001e0dee280b572e2211 --- M scripts/archivebot.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index 407bd91..3e02ea9 100644 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -546,9 +546,9 @@ Archiver = PageArchiver(pg, a, salt, force) Archiver.run() time.sleep(10) - except: - pywikibot.output(u'Error occured while processing page %s' % pg) - traceback.print_exc() + except Exception as e: + pywikibot.output(u'Error occured while processing page %s: %s' % (pg, e)) + pywikibot.output(traceback.format_exc())
if __name__ == '__main__': main()
pywikibot-commits@lists.wikimedia.org