From eb71b6ba881318b16992d4aa112ecd2e400ff4f2 Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Sat, 25 Jun 2022 16:43:23 -0400 Subject: [PATCH] Capture KeyError without printing anything --- tnc/audio.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tnc/audio.py b/tnc/audio.py index 6336100a..c226bda8 100644 --- a/tnc/audio.py +++ b/tnc/audio.py @@ -61,6 +61,8 @@ def fetch_audio_devices(input_devices, output_devices): max_output_channels = device["max_output_channels"] max_input_channels = device["max_input_channels"] + except KeyError: + continue except Exception as err: print(err) max_input_channels = 0