Skip to content

Commit 0135d95

Browse files
authored
catch the correct exception OSError
1 parent 64d869e commit 0135d95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soundcard/pulseaudio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
try:
1717
_pa = _ffi.dlopen('pulse')
18-
except:
18+
except OSError:
1919
# Need sometimes explicite sharedobject name on Linux
2020
_pa = _ffi.dlopen('libpulse.so')
2121

0 commit comments

Comments
 (0)