diff options
author | Sebastien Martini <seb@dbzteam.org> | 2010-07-29 10:31:46 +0200 |
---|---|---|
committer | Sebastien Martini <seb@dbzteam.org> | 2010-07-29 10:31:46 +0200 |
commit | 7d2110a39847512c98533cc5237d3795d31eeb73 (patch) | |
tree | a5cbe63ffb3c9851fd9c88aafab8b03790386a52 /python2/pyinotify.py | |
parent | d87b2cdd62c232eef7a669ccc006161aaea66db4 (diff) | |
download | pyinotify-7d2110a39847512c98533cc5237d3795d31eeb73.tar.gz |
Fixed exception handling of ctypes.util.find_library() (thanks to
przemyslaw.wrzos@calyptech.com).
Diffstat (limited to 'python2/pyinotify.py')
-rwxr-xr-x | python2/pyinotify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python2/pyinotify.py b/python2/pyinotify.py index 5254461..b5f420a 100755 --- a/python2/pyinotify.py +++ b/python2/pyinotify.py @@ -113,7 +113,7 @@ def load_libc(): l = None try: l = ctypes.util.find_library('c') - except OSError, IOError: + except (OSError, IOError): pass # Will attemp to load it with None anyway. if sys.version_info[0] >= 2 and sys.version_info[1] >= 6: |