From fb14c834db42b35ac71c53ba78ffaed49b9d05cf Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 31 Aug 2022 16:47:28 -0400 Subject: Fix regression incorrectly reporting mismatches Add a missing continue that caused incorrectly reported trailer mismatches. Signed-off-by: Konstantin Ryabitsev --- b4/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/b4/__init__.py b/b4/__init__.py index e8e31fe..4062ec3 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -1086,6 +1086,7 @@ class LoreMessage: if ltr.email_eq(self.fromemail): logger.debug(' trailer email match') trailers.append(ltr) + continue # Does the name match, at least? nmatch = False @@ -1543,7 +1544,7 @@ class LoreMessage: extinfo = None mextinfo = re.search(r'(.*\S+)(\s+#[^#]+)$', ovalue) if mextinfo: - logger.debug('Trailer contains hashtag extinfo: ', line) + logger.debug('Trailer contains hashtag extinfo: %s', line) # Found extinfo of the hashtag genre egr = mextinfo.groups() ovalue = egr[0] -- cgit v1.2.3