Do not print trace when Ctrl+C'ing

This commit is contained in:
Midgard 2021-08-08 18:43:16 +02:00
parent 6417fb44e8
commit bc49857220
Signed by: midgard
GPG key ID: 511C112F1331BBB4

2
mmmpd
View file

@ -136,6 +136,8 @@ def main(mpd_host_string, mpd_port):
set_status_from_mpd(mpd_client) set_status_from_mpd(mpd_client)
try: try:
loop(mpd_client, set_status_from_mpd) loop(mpd_client, set_status_from_mpd)
except KeyboardInterrupt:
pass
finally: finally:
clear_status() clear_status()