seb-m / pyinotify

Monitoring filesystems events with inotify on Linux.
http://github.com/seb-m/pyinotify/wiki
MIT License
2.29k stars 379 forks source link

Add RuntimeError to possible exceptions when searching for libc #178

Open letorbi opened 5 years ago

letorbi commented 5 years ago

Pyinotify throws an exception on Synology DiskStation systems, because ctypes.util.find_library() throws a RuntimeError instead of the expected OSError or IOError.

This PR fixes this by adding RuntimeError to the list of expected exception types.