diff --git a/infer/lib/python/inferlib/bucklib.py b/infer/lib/python/inferlib/bucklib.py index 3fdffd5fc..f5a44aa4a 100644 --- a/infer/lib/python/inferlib/bucklib.py +++ b/infer/lib/python/inferlib/bucklib.py @@ -279,7 +279,8 @@ def get_output_jars(targets): else: audit_output = subprocess.check_output( ['buck', 'audit', 'classpath'] + targets) - return audit_output.strip().split('\n') + classpath_jars = audit_output.strip().split('\n') + return filter(os.path.isfile, classpath_jars) def collect_results(args, start_time, targets):