[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
master
Jules Villard 7 years ago committed by Facebook Github Bot
parent d2b4f3c8da
commit 5b55179cbf

@ -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())

Loading…
Cancel
Save