Skip to contentSkip to conversation

CRITICAL: prep-pre-flight-checks must be a list, got str

b4 Nathan Chancellor 2 participants 2 messages Jun 10, 2025 – Jun 11, 2025

lore
Share & tools
lore
#0 lore raw

After commit 8cae108 ("Further mypy typing enhancements"), I am seeing an error when running 'b4 send':

  $ b4 send
  Converted the branch to 1 messages
  CRITICAL: prep-pre-flight-checks must be a list, got str

The following diff appears to resolve it for me.

Cheers,
Nathan

src/b4/ez.py +1 -1
index 0b24d50..df248bf 100644
@@ -2005,7 +2005,7 @@ def cmd_send(cmdargs: argparse.Namespace) -> None:
                         'needs-checking-deps': True,
                         'needs-auto-to-cc': True,
                         }
-            cfg_checks = config.get('prep-pre-flight-checks', 'enable-all')
+            cfg_checks = config.get('prep-pre-flight-checks', ['enable-all'])
             if not isinstance(cfg_checks, list):
                 logger.critical('CRITICAL: prep-pre-flight-checks must be a list, got %s', type(cfg_checks).__name__)
                 sys.exit(1)
#1 lore raw
Quoted 6 lines · Nathan Chancellor

After commit 8cae108 ("Further mypy typing enhancements"), I am seeing an error when running 'b4 send':

  $ b4 send
  Converted the branch to 1 messages
  CRITICAL: prep-pre-flight-checks must be a list, got str

Thank you for the report. I didn't take the patch, because the way this was implemented needed to be redone anyway. Please check the latest master, and thank you for trying out the bleeding edge!

-K