Catch FileNotFoundError
This commit is contained in:
parent
99d4919539
commit
8de3064953
BIN
kuro/resources/gpu/gpu-intel.png
Normal file
BIN
kuro/resources/gpu/gpu-intel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
BIN
kuro/resources/gpu/gpu-nvidia.png
Normal file
BIN
kuro/resources/gpu/gpu-nvidia.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
kuro/resources/gpu/gpu-unknown.png
Normal file
BIN
kuro/resources/gpu/gpu-unknown.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
|
@ -154,8 +154,8 @@ def bluetooth_audio_sink():
|
|||
try:
|
||||
output = subprocess.check_output("pamixer --list-sinks".split()).decode("utf-8")
|
||||
output = [x for x in output.split('\n') if "blue" in x.lower()]
|
||||
except subprocess.CalledProcessError:
|
||||
return -1
|
||||
except subprocess.CalledProcessError, FileNotFoundError:
|
||||
|
||||
sink = -1
|
||||
try:
|
||||
|
|
Loading…
Reference in a new issue