Danmichaelo has uploaded a new change for review. https://gerrit.wikimedia.org/r/159117
Change subject: Archivebot: Don't crash on invalid dates ...................................................................... Archivebot: Don't crash on invalid dates textlib.py:1318 can throw ValueError for dates that are out of range (e.g. month > 12). Ran into this problem with a user who entered signature dates manually. Change-Id: I98285e97dd81f2eb78596ca0cfdd0cdcac958a74 --- M scripts/archivebot.py 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core refs/changes/17/159117/1 diff --git a/scripts/archivebot.py b/scripts/archivebot.py index b56c6c5..d2a923d 100644 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -222,7 +222,10 @@ return self.content += line + '\n' - timestamp = self.ts.timestripper(line) + try: + timestamp = self.ts.timestripper(line) + except ValueError: + timestamp = None if not self.timestamp: # first time self.timestamp = timestamp -- To view, visit https://gerrit.wikimedia.org/r/159117 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I98285e97dd81f2eb78596ca0cfdd0cdcac958a74 Gerrit-PatchSet: 1 Gerrit-Project: pywikibot/core Gerrit-Branch: master Gerrit-Owner: Danmichaelo <danmicha...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits