Skip to contentSkip to conversation

"b4 send" crash

DISCUSSION Bjorn Helgaas 2 participants 2 messages Oct 19, 2022

lore
Share & tools
lore
#0 lore raw

I think this is because I ran "b4 send" on a branch without having run "b4 prep" first. "b4 send" works as expected after I run "b4 prep".

02:36:40 ~/linux (wip/bjorn-22-10-irq-of)$ b4 --version
0.10.1
02:36:46 ~/linux (wip/bjorn-22-10-irq-of)$ b4 send --hide-cover-to-cc --dry-run Traceback (most recent call last):

    File "/home/bjorn/.local/bin/b4", line 8, in <module>
      sys.exit(cmd())
    File "/home/bjorn/.local/lib/python3.8/site-packages/b4/command.py", line 341, in cmd
      cmdargs.func(cmdargs)
    File "/home/bjorn/.local/lib/python3.8/site-packages/b4/command.py", line 86, in cmd_send
      b4.ez.cmd_send(cmdargs)
    File "/home/bjorn/.local/lib/python3.8/site-packages/b4/ez.py", line 1150, in cmd_send
      todests, ccdests, patches = get_prep_branch_as_patches(prefixes=prefixes,
    File "/home/bjorn/.local/lib/python3.8/site-packages/b4/ez.py", line 1016, in get_prep_branch_as_patches
      csubject, cbody = cover.split('\n', maxsplit=1)

ValueError: not enough values to unpack (expected 2, got 1)

#1 lore raw
Quoted 2 lines · Bjorn Helgaas

I think this is because I ran "b4 send" on a branch without having run "b4 prep" first. "b4 send" works as expected after I run "b4 prep".

Thank you, there's a fix in master and stable-0.10.y.

-K