From e6da9a9beabd58dd27d742e44f15b70808116621 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 19 Nov 2017 15:41:09 +0100 Subject: gen_fast_manifest: Fix Py2 error handling --- utils/gen_fast_manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py index 49cd0f4..7161a7f 100755 --- a/utils/gen_fast_manifest.py +++ b/utils/gen_fast_manifest.py @@ -92,7 +92,7 @@ def gen_manifest(top_dir): for l in f: if l.startswith(b'DIST') or l.startswith(b'IGNORE'): manifest_entries.append(l.rstrip()) - except OSError as e: + except IOError as e: if e.errno != errno.ENOENT: raise else: -- cgit v1.2.3