From 6c17ed318553c0a1f266d875a6f02d6b47f10fda Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 7 Apr 2021 14:56:09 -0400 Subject: [PATCH] Re-raise exceptions instead of sys.exit Test: th Change-Id: I3ac343b51eeeaa948712be81b640122f9981137d --- tools/releasetools/sign_target_files_apks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index 3db555974..22c6ac46c 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py @@ -1383,6 +1383,6 @@ if __name__ == '__main__': main(sys.argv[1:]) except common.ExternalError as e: print("\n ERROR: %s\n" % (e,)) - sys.exit(1) + raise finally: common.Cleanup()