> +        command = procutil.shellsplit(method)
> +        if not (command and procutil.findexe(command[0])):

This condition is correct, but `command[0]` would raise IndexError if
`not command`.

Maybe we'll need a helper function that does `shellsplit()` and returns
`command[0]` or `b''`.

> -                _(b'%r specified as email transport, but not in PATH') % 
> method
> +                _(b'%r specified as email transport, but not in PATH') % 
> command[0]
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to