aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-06-27 16:09:31 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2023-06-27 16:09:31 +0500
commit9c1f62dbe8734fe74868b29005aec076766d95db (patch)
tree9aee044e8fd371f02046def7669002570542e91f /scripts
parentdev-nim/jester: add missing test dep (diff)
downloadguru-9c1f62dbe8734fe74868b29005aec076766d95db.tar.gz
guru-9c1f62dbe8734fe74868b29005aec076766d95db.tar.bz2
guru-9c1f62dbe8734fe74868b29005aec076766d95db.zip
scripts/email-checker.py: handle EOF
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/email-checker.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/email-checker.py b/scripts/email-checker.py
index edc528a37..6c722a9b3 100755
--- a/scripts/email-checker.py
+++ b/scripts/email-checker.py
@@ -47,7 +47,11 @@ def check_maintainers(maintainers: Iterator[Maintainer]) -> Iterator[Maintainer]
if __name__ == '__main__':
- files = input().split()
+ try:
+ files = input().split()
+ except EOFError:
+ sys.exit(0)
+
maintainers = set(read_all_maintainers(files))
missing_maintainers = tuple(check_maintainers(maintainers))
sys.exit(int(len(missing_maintainers) != 0))