aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-07-28 17:09:17 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-07-28 17:09:17 -0400
commitfe10a6b240621608de49dc4445a02b79c5611f15 (patch)
tree4960d8e2b3b0148a8455d4ff542320f8c918d0c4
parent761edf1cc65e5fabac60cba21be90ff7ddfb67da (diff)
downloadb4-fe10a6b240621608de49dc4445a02b79c5611f15.tar.gz
ez: fix regression when running b4 trailers
Do not crash when one of the msgs is a None (usually, the cover commit). Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/ez.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/ez.py b/b4/ez.py
index a6f25ed..c0380d4 100644
--- a/b4/ez.py
+++ b/b4/ez.py
@@ -576,6 +576,8 @@ def update_trailers(cmdargs: argparse.Namespace) -> None:
by_subject = dict()
updates = dict()
for commit, msg in patches:
+ if not msg:
+ continue
commit_map[commit] = msg
body = msg.get_payload()
patchid = b4.LoreMessage.get_patch_id(body)