check start is not None before checking whether hour is before start

pull/129/head
Christopher Usher 5 years ago
parent f8835cd253
commit 8579fcaeea

@ -424,6 +424,7 @@ class BackfillerWorker(object):
for hour in hours: for hour in hours:
# since backfilling can take a long time, recheck whether this # since backfilling can take a long time, recheck whether this
# hour is after the start # hour is after the start
if self.start is not None:
if not isinstance(self.start, datetime.datetime): if not isinstance(self.start, datetime.datetime):
start_hour = datetime.datetime.utcnow() - datetime.timedelta(hours=self.start) start_hour = datetime.datetime.utcnow() - datetime.timedelta(hours=self.start)
else: else:

Loading…
Cancel
Save