fix: clean exit by catching keyboard interrupt (#2206)
This commit is contained in:
parent
119d06fb7c
commit
4a671a1b3b
|
@ -76,7 +76,7 @@ def run():
|
||||||
cmd.extend([stream_url])
|
cmd.extend([stream_url])
|
||||||
|
|
||||||
print(" ".join(cmd))
|
print(" ".join(cmd))
|
||||||
with suppress(subprocess.CalledProcessError):
|
with suppress(subprocess.CalledProcessError, KeyboardInterrupt):
|
||||||
subprocess.run(cmd, check=True, text=True)
|
subprocess.run(cmd, check=True, text=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue