summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
Diffstat (limited to 'release')
-rwxr-xr-xrelease/check-metadata.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/release/check-metadata.py b/release/check-metadata.py
index e17932daa..951bd4c2c 100755
--- a/release/check-metadata.py
+++ b/release/check-metadata.py
@@ -90,7 +90,10 @@ def check_license(path: Path, lines: list[str]) -> bool:
90 90
91def check_path(opts: argparse.Namespace, path: Path) -> bool: 91def check_path(opts: argparse.Namespace, path: Path) -> bool:
92 """Check a single path.""" 92 """Check a single path."""
93 data = path.read_text(encoding="utf-8") 93 try:
94 data = path.read_text(encoding="utf-8")
95 except FileNotFoundError:
96 return True
94 lines = data.splitlines() 97 lines = data.splitlines()
95 # NB: Use list comprehension and not a generator so we run all the checks. 98 # NB: Use list comprehension and not a generator so we run all the checks.
96 return all( 99 return all(