We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2b403e commit aa5ea86Copy full SHA for aa5ea86
soundfile.py
@@ -159,11 +159,11 @@
159
raise OSError('no packaged library for this platform')
160
161
import _soundfile_data # ImportError if this doesn't exist
162
- _path = _os.path.dirname(_soundfile_data.__file__)
+ _path = _os.path.dirname(_soundfile_data.__file__) # TypeError if __file__ is None
163
_full_path = _os.path.join(_path, _packaged_libname)
164
_snd = _ffi.dlopen(_full_path) # OSError if file doesn't exist or can't be loaded
165
166
-except (OSError, ImportError):
+except (OSError, ImportError, TypeError):
167
try: # system-wide libsndfile:
168
_libname = _find_library('sndfile')
169
if _libname is None:
0 commit comments