Use RuntimeError
This commit is contained in:
parent
83a57b77eb
commit
f810003ab9
|
@ -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}'")
|
||||
|
||||
|
|
Loading…
Reference in a new issue