diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-12-15 00:36:12 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-12-15 00:36:12 +0000 |
| commit | a3ff953e5084d83a6bede0582465c37adb35c2ea (patch) | |
| tree | 087ad5e262db3ba9cecfd7ad631157c8d4e7e31e | |
| parent | b0f68fa7e0e5e60507aad249d67d643d01132d91 (diff) | |
| download | gentoo-utils-a3ff953e5084d83a6bede0582465c37adb35c2ea.tar.gz | |
except InvalidAtom in atom.py
| -rwxr-xr-x | scripts/atom.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/atom.py b/scripts/atom.py index 2e8ca7f..a93251a 100755 --- a/scripts/atom.py +++ b/scripts/atom.py @@ -2,12 +2,13 @@ import sys from portage.dep import Atom +from portage.exception import InvalidAtom for line in sys.stdin.buffer: try: Atom(line.decode().strip()) sys.stdout.buffer.write(b"0\n") - except: + except InvalidAtom: sys.stdout.buffer.write(b"1\n") finally: sys.stdout.buffer.flush() |
