diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-10-23 17:41:17 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-10-23 17:41:17 +0200 |
commit | ef078f7778b2cce9eb86dcbabc0fc782795886e5 (patch) | |
tree | 1abb8091ace86bd4172e4440d32e36d942e62511 | |
parent | 1457be73d3d3070f922d49987ce7387f35627c8e (diff) | |
download | gemato-ef078f7778b2cce9eb86dcbabc0fc782795886e5.tar.gz |
verify: Fix handling os.open() exceptions in Python 2
-rw-r--r-- | gemato/verify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemato/verify.py b/gemato/verify.py index 397488b..888af57 100644 --- a/gemato/verify.py +++ b/gemato/verify.py @@ -39,7 +39,7 @@ def verify_path(path, e): try: # we want O_NONBLOCK to avoid blocking when opening pipes fd = os.open(path, os.O_RDONLY|os.O_NONBLOCK) - except IOError as err: + except OSError as err: if err.errno == errno.ENOENT: exists = False opened = False |