1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import sys import traceback from ssh_audit.ssh_audit import main from ssh_audit import exitcodes exit_code = exitcodes.GOOD try: exit_code = main() except Exception: exit_code = exitcodes.UNKNOWN_ERROR print(traceback.format_exc()) sys.exit(exit_code)