diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 11:23:37 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 11:23:37 -0400 |
commit | afd622604f9ec4360d50b6e32b11fc66e44d62a1 (patch) | |
tree | 616a532d104186b8f444a67e7ec806880003afbd /b4/__init__.py | |
parent | 82c37bbbebae6678b68580ae11a161223a8ed7b4 (diff) | |
download | b4-afd622604f9ec4360d50b6e32b11fc66e44d62a1.tar.gz |
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 <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/__init__.py')
-rw-r--r-- | b4/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |