From 5b55179cbfcfea7da4dde8c55ab5bce52ae3a3a8 Mon Sep 17 00:00:00 2001 From: Jules Villard Date: Wed, 20 Sep 2017 08:48:23 -0700 Subject: [PATCH] [python] do not fail when trying to log the Java version Summary: We never want to fail when logging info. Reviewed By: jberdine Differential Revision: D5871597 fbshipit-source-id: 4a1d4c3 --- infer/lib/python/inferlib/capture/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/lib/python/inferlib/capture/util.py b/infer/lib/python/inferlib/capture/util.py index 4ffbae911..b4600c3d8 100644 --- a/infer/lib/python/inferlib/capture/util.py +++ b/infer/lib/python/inferlib/capture/util.py @@ -51,7 +51,7 @@ def run_compilation_commands(cmds, clean_cmd): def run_cmd_ignore_fail(cmd): try: return subprocess.check_output(cmd, stderr=subprocess.STDOUT) - except subprocess.CalledProcessError: + except: return 'calling {cmd} failed\n{trace}'.format( cmd=' '.join(cmd), trace=traceback.format_exc())