diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-09-05 18:48:01 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-09-05 18:49:32 +0200 |
commit | c8bb865c349d25602a7256ddcdf1801c0a9694a7 (patch) | |
tree | fc40a41e00e59c381358415dc0b67cb81834fdbb /utils/gen_fast_manifest.py | |
parent | f51119d8c9e65dfd1f48f5669eafb072fb15af1c (diff) | |
download | gemato-c8bb865c349d25602a7256ddcdf1801c0a9694a7.tar.gz |
Replace IOError/OSError whenever possible
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'utils/gen_fast_manifest.py')
-rwxr-xr-x | utils/gen_fast_manifest.py | 4 |
1 files changed, 1 insertions, 3 deletions
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 |