From c8bb865c349d25602a7256ddcdf1801c0a9694a7 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 5 Sep 2020 18:48:01 +0200 Subject: Replace IOError/OSError whenever possible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- utils/gen_fast_manifest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'utils/gen_fast_manifest.py') diff --git a/utils/gen_fast_manifest.py b/utils/gen_fast_manifest.py index f9eed6c..d7c8c51 100755 --- a/utils/gen_fast_manifest.py +++ b/utils/gen_fast_manifest.py @@ -89,9 +89,7 @@ def gen_manifest(top_dir): if l.startswith(b'DIST') or l.startswith(b'IGNORE'): manifest_entries.append(l.rstrip()) had_manifest = True - except IOError as e: - if e.errno != errno.ENOENT: - raise + except FileNotFoundError: had_manifest = False # generate local file entries -- cgit v1.2.3