show_error kitten: Exit at EOF

This commit is contained in:
pagedown 2022-02-24 21:13:57 +08:00
parent ef4240e196
commit e3adf8c6bf
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -32,7 +32,7 @@ def real_main(args: List[str]) -> None:
def main(args: List[str]) -> None: def main(args: List[str]) -> None:
try: try:
with suppress(KeyboardInterrupt): with suppress(KeyboardInterrupt, EOFError):
real_main(args) real_main(args)
except Exception: except Exception:
import traceback import traceback