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()
--
To view, visit
https://gerrit.wikimedia.org/r/135302
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3f38cddcbaf7b4a73c91001e0dee280b572e2211
Gerrit-PatchSet: 4
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Whym <whym(a)whym.org>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>