fix: clean exit by catching keyboard interrupt (#2206)

This commit is contained in:
Jonas L 2022-10-04 14:18:26 +02:00 committed by GitHub
parent 119d06fb7c
commit 4a671a1b3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def run():
cmd.extend([stream_url])
print(" ".join(cmd))
with suppress(subprocess.CalledProcessError):
with suppress(subprocess.CalledProcessError, KeyboardInterrupt):
subprocess.run(cmd, check=True, text=True)