summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-30 17:25:53 -0500
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-11-30 17:25:53 -0500
commit807a4e1c96582968b722072dab28abf9fc1dc873 (patch)
tree0d37008866cb391bc1e5e81d1e528adc212c6397
parent0d994eeb9de835c3b264de1e7dad138e6573f707 (diff)
downloadb4-807a4e1c96582968b722072dab28abf9fc1dc873.tar.gz
Fix crasher in mismatched trailer handling
We may have 3 or 4 members in the array, so don't expect always 3. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r--b4/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 03e773b..5c59150 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -302,8 +302,8 @@ class LoreMailbox:
continue
trailers, mismatches = fmsg.get_trailers(sloppy=sloppytrailers)
- for tname, tvalue, extdata in mismatches:
- lser.trailer_mismatches.add((tname, tvalue, fmsg.fromname, fmsg.fromemail))
+ for trailer in mismatches:
+ lser.trailer_mismatches.add((trailer[0], trailer[1], fmsg.fromname, fmsg.fromemail))
lvl = 1
while True:
logger.debug('%sParent: %s', ' ' * lvl, pmsg.full_subject)