summaryrefslogtreecommitdiff
path: root/utils/gen_fast_manifest.py
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-09-05 18:48:01 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-05 18:49:32 +0200
commitc8bb865c349d25602a7256ddcdf1801c0a9694a7 (patch)
treefc40a41e00e59c381358415dc0b67cb81834fdbb /utils/gen_fast_manifest.py
parentf51119d8c9e65dfd1f48f5669eafb072fb15af1c (diff)
downloadgemato-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-xutils/gen_fast_manifest.py4
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