From d291cf05a426675a918528be919d1d3c35c36396 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Fri, 16 Jun 2017 20:16:33 +0100 Subject: [PATCH] Bug 1373789 - Handle some kinds of malformed lcov lines better. r=chmanchester --HG-- extra : rebase_source : 43b52f283ebd5c03de54ad46bbbf49046ae21051 --- python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py b/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py index f1700d785522..5350c59a434e 100644 --- a/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py +++ b/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py @@ -293,6 +293,10 @@ class LcovFile(object): print("Invalid lcov line start at %s:%d:\n%s" % (lcov_fh.name, count + 1, line)) raise + except TypeError: + print("Invalid lcov line start at %s:%d:\n%s" % + (lcov_fh.name, count + 1, line)) + raise def print_file(self, fh): for record in self.records: