Print stderr on subcommand failure

This commit is contained in:
Adam Goldsmith 2022-12-25 02:16:54 -05:00
parent 2efd3e3f9f
commit 7919edce31

View File

@ -62,4 +62,8 @@ if __name__ == "__main__":
argp.add_argument("--list-suffix", help="Suffix for mailing lists") argp.add_argument("--list-suffix", help="Suffix for mailing lists")
args = argp.parse_args() args = argp.parse_args()
main(args.bin, args.api, args.token, args.list_suffix) try:
main(args.bin, args.api, args.token, args.list_suffix)
except subprocess.CalledProcessError as e:
print(e.stderr)
raise