From fe10a6b240621608de49dc4445a02b79c5611f15 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Thu, 28 Jul 2022 17:09:17 -0400 Subject: 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 --- b4/ez.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- cgit v1.2.3