Capture KeyError without printing anything

This commit is contained in:
Paul Kronenwetter 2022-06-25 16:43:23 -04:00
parent 1614e8b18a
commit eb71b6ba88

View file

@ -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