From 68e3ec2a73678faace0b8023803413a7586845d3 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sat, 5 Sep 2015 14:23:48 -0500 Subject: [PATCH] Don't pass starttimestamp when None. This sometimes happens when pages are edited without loading them beforehand. --- earwigbot/wiki/page.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/earwigbot/wiki/page.py b/earwigbot/wiki/page.py index 867be12..00a32ca 100644 --- a/earwigbot/wiki/page.py +++ b/earwigbot/wiki/page.py @@ -339,7 +339,8 @@ class Page(CopyvioMixIn): params["bot"] = "true" if not force: - params["starttimestamp"] = self._starttimestamp + if self._starttimestamp: + params["starttimestamp"] = self._starttimestamp if self._basetimestamp: params["basetimestamp"] = self._basetimestamp if self._exists == self.PAGE_MISSING: