commit | 66ed06fb29b5f2a97dc59a160d08a4f4ddf86282 | [log] [tgz] |
---|---|---|
author | Kelvin Zhang <zhangkelvin@google.com> | Wed Apr 07 14:56:09 2021 -0400 |
committer | Kelvin Zhang <zhangkelvin@google.com> | Fri Apr 16 19:06:00 2021 -0400 |
tree | d69f42f10611f1ccb81680cb434d8ddaa5e41539 | |
parent | 55e651133189db2015e860fc5f2c293c6fa6f7be [diff] |
Re-raise exceptions instead of sys.exit If we call sys.exit(), code in finally block won't be executed. Test: th Change-Id: I1f743c9385218742def3b925427942cb1d5bd031
diff --git a/tools/releasetools/sign_target_files_apks.py b/tools/releasetools/sign_target_files_apks.py index 3db5559..22c6ac4 100755 --- a/tools/releasetools/sign_target_files_apks.py +++ b/tools/releasetools/sign_target_files_apks.py
@@ -1383,6 +1383,6 @@ main(sys.argv[1:]) except common.ExternalError as e: print("\n ERROR: %s\n" % (e,)) - sys.exit(1) + raise finally: common.Cleanup()