mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Capture KeyError without printing anything
This commit is contained in:
parent
1614e8b18a
commit
eb71b6ba88
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ def fetch_audio_devices(input_devices, output_devices):
|
||||||
max_output_channels = device["max_output_channels"]
|
max_output_channels = device["max_output_channels"]
|
||||||
max_input_channels = device["max_input_channels"]
|
max_input_channels = device["max_input_channels"]
|
||||||
|
|
||||||
|
except KeyError:
|
||||||
|
continue
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
print(err)
|
print(err)
|
||||||
max_input_channels = 0
|
max_input_channels = 0
|
||||||
|
|
Loading…
Reference in a new issue