summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Martini <seb@dbzteam.org>2010-07-29 10:31:46 +0200
committerSebastien Martini <seb@dbzteam.org>2010-07-29 10:31:46 +0200
commit7d2110a39847512c98533cc5237d3795d31eeb73 (patch)
treea5cbe63ffb3c9851fd9c88aafab8b03790386a52
parentd87b2cdd62c232eef7a669ccc006161aaea66db4 (diff)
downloadpyinotify-7d2110a39847512c98533cc5237d3795d31eeb73.tar.gz
Fixed exception handling of ctypes.util.find_library() (thanks to
przemyslaw.wrzos@calyptech.com).
-rwxr-xr-xpython2/pyinotify.py2
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: