From 7888de864766db90d9c31080128aee3361d72002 Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Mon, 26 Sep 2016 11:32:51 +0700 Subject: [PATCH] Using sys.exit(main()) instead of main() TrivialFix: Similar [1] in Kolla project As we known, Exceptions are raised by the sys.exit() function. When they are not handled, no stack traceback is printed in the Python interpreter. Therefore, when using sys.exit(main()) instead of main() may be more readable and reasonable. [1] https://review.openstack.org/#/c/349353/ Change-Id: Icf5e8a4718dd66d070b0ddc5749a8a0d1abb72c2 --- tests/ci/sync_requirements.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ci/sync_requirements.py b/tests/ci/sync_requirements.py index 78268450..52d2d3c2 100644 --- a/tests/ci/sync_requirements.py +++ b/tests/ci/sync_requirements.py @@ -337,4 +337,4 @@ def main(): parser.parse_args(sys.argv[1:]).action() if __name__ == "__main__": - main() + sys.exit(main())