soxoj--maigret
e52ddb7dd4
CodeQL / Analyze (python) (push) Failing after 1s
Linting and testing / build (3.11) (push) Failing after 0s
Package exe with PyInstaller - Windows / build (push) Failing after 2s
Linting and testing / build (3.10) (push) Failing after 1s
Linting and testing / minimal-install (push) Failing after 1s
Update sites rating and statistics / build (push) Failing after 1s
Build docker image and push to DockerHub / docker (push) Failing after 1s
Linting and testing / build (3.12) (push) Failing after 1s
Linting and testing / build (3.14) (push) Failing after 1s
Linting and testing / build (3.13) (push) Failing after 2s
23 行
640 B
Python
23 行
640 B
Python
#! /usr/bin/env python3
|
|
|
|
"""
|
|
Maigret entrypoint
|
|
"""
|
|
|
|
import asyncio
|
|
import sys
|
|
|
|
from .maigret import main
|
|
|
|
if __name__ == "__main__":
|
|
# First Ctrl+C is caught inside main() (search loop → falls through to
|
|
# report generation with partial results). A *second* Ctrl+C during
|
|
# report generation, or any uncaught Ctrl+C before the search loop runs,
|
|
# reaches asyncio.run as KeyboardInterrupt — exit with the conventional
|
|
# SIGINT code (130) instead of dumping a traceback.
|
|
try:
|
|
asyncio.run(main())
|
|
except KeyboardInterrupt:
|
|
print('\nMaigret interrupted.', file=sys.stderr)
|
|
sys.exit(130)
|