holgern / pyedflib

pyedflib is a python library to read/write EDF+/BDF+ files based on EDFlib.
http://pyedflib.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
214 stars 121 forks source link

split up Errors in FileNotFoundError and OSError #135

Closed skjerns closed 3 years ago

skjerns commented 3 years ago

I split up the generic OSError into FileNotFoundError and OSError.

The first one is only given if the file really does not exist. The second is given in all other cases, such as wrong formatting or UTF8-filename errors on Windows

fixes #133