Use RuntimeError

This commit is contained in:
Sleepy Monax 2024-01-02 15:25:18 +01:00
parent 83a57b77eb
commit f810003ab9

View file

@ -155,7 +155,7 @@ def _(args: cli.Args):
print(vt100.p(cmd))
exitCode, ouput = container.exec_run(f"/bin/bash -c '{cmd}'", demux=True)
if exitCode != 0:
raise Exception(f"Failed to initialize pod with command '{cmd}'")
raise RuntimeError(f"Failed to initialize pod with command '{cmd}'")
print(f"Created pod '{name[len(podPrefix) :]}' from image '{image.image}'")