clan-app: don't raise exception when we use ctr-c

This commit is contained in:
Jörg Thalheim
2025-05-14 11:41:16 +02:00
parent 693f404f4c
commit 56ffd896dc

View File

@@ -19,6 +19,10 @@ def main(argv: list[str] = sys.argv) -> int:
args = parser.parse_args(argv[1:])
app_opts = ClanAppOptions(content_uri=args.content_uri, debug=args.debug)
app_run(app_opts)
try:
app_run(app_opts)
except KeyboardInterrupt:
log.info("Keyboard interrupt received, exiting...")
return 0
return 0