From 12a69d7c5018c0dc0188e8f79933f2f7cb257c57 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Mon, 25 May 2020 15:48:06 -0400 Subject: Backfill series before diffing them Make sure we a) attempt to backfill the series if they are incomplete, b) error out if the series is incomplete anyway Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'b4/__init__.py') diff --git a/b4/__init__.py b/b4/__init__.py index 3cdad1c..ab8f034 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -680,6 +680,9 @@ class LoreSeries: # Logic largely borrowed from gj_tools seenfiles = set() for lmsg in self.patches[1:]: + if lmsg is None: + logger.critical('ERROR: v%s series incomplete; unable to create a fake-am range', self.revision) + return None, None logger.debug('Looking at %s', lmsg.full_subject) lmsg.load_hashes() if not len(lmsg.blob_indexes): -- cgit v1.2.3