def main(): host = Host() importer = TestImporter(host) try: host.exit(importer.main()) except KeyboardInterrupt: host.print_("Interrupted, exiting") host.exit(exit_codes.INTERRUPTED_EXIT_STATUS)
def main(): host = Host() exporter = TestExporter(host) try: success = exporter.main() host.exit(0 if success else 1) except KeyboardInterrupt: host.print_('Interrupted, exiting') host.exit(exit_codes.INTERRUPTED_EXIT_STATUS)