Handle case where file was ignored

This commit is contained in:
Ian Cordasco 2016-03-15 14:39:43 -05:00
parent 0b063a1024
commit ee18ac981e

View file

@ -149,7 +149,7 @@ class Manager(object):
for checker in self.checkers:
filename = checker.filename
results = sorted(final_results[filename],
results = sorted(final_results.get(filename, []),
key=lambda tup: (tup[1], tup[2]))
for (error_code, line_number, column, text, line) in results:
style_guide.handle_error(