Catch FileNotFoundError

This commit is contained in:
Kevin Alberts 2019-05-27 23:48:12 +02:00
parent 99d4919539
commit 8de3064953
Signed by: Kurocon
GPG key ID: BCD496FEBA0C6BC1
4 changed files with 1 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View file

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