From 712d27b5445da91cffad410ca71d31135f351259 Mon Sep 17 00:00:00 2001 From: Sam Blackshear Date: Mon, 29 Jun 2015 23:16:51 -0600 Subject: [PATCH] [Infer][capture] Fixing Python AttributeError in javac capture Summary: @public JavacCapture does not have an args field, which crashes Python with an AttributeError if we hit self.args.debug. Replaced with the correct expression. Test Plan: Cause AttributeError with small test case, error no longer happens after fix --- infer/lib/capture/javac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infer/lib/capture/javac.py b/infer/lib/capture/javac.py index eb1df54a8..65763a721 100644 --- a/infer/lib/capture/javac.py +++ b/infer/lib/capture/javac.py @@ -30,6 +30,6 @@ class JavacCapture: self.analysis.start() return os.EX_OK except subprocess.CalledProcessError as exc: - if self.args.debug: + if self.analysis.args.debug: traceback.print_exc() return exc.returncode