clan-cli: exit with errorcode also in debug mode

This commit is contained in:
lassulus
2025-01-10 15:08:38 +01:00
committed by Mic92
parent 3ec028d672
commit cb2f0c5222

View File

@@ -438,7 +438,7 @@ def main() -> None:
log.exception("Exited with error")
else:
log.error("%s", e)
sys.exit(1)
sys.exit(1)
except KeyboardInterrupt as ex:
log.warning("Interrupted by user", exc_info=ex)
sys.exit(1)