From afd622604f9ec4360d50b6e32b11fc66e44d62a1 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Thu, 7 May 2020 11:23:37 -0400 Subject: Do not crash when thread is incomplete Do not try to calculate indexes on a missing patch in an incomplete thread. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'b4/__init__.py') diff --git a/b4/__init__.py b/b4/__init__.py index cc93adc..a6b683e 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -585,7 +585,7 @@ class LoreSeries: mismatches = 0 seenfiles = set() for lmsg in self.patches[1:]: - if lmsg.blob_indexes is None: + if lmsg is None or lmsg.blob_indexes is None: continue for fn, bh in lmsg.blob_indexes: if fn in seenfiles: -- cgit v1.2.3