Initialize the lines_count field with fallback to empty dict

This commit is contained in:
Dmitry Trofimov
2016-07-13 02:04:08 +02:00
parent 2664d298e6
commit e9003694cd
+1 -1
View File
@@ -88,7 +88,7 @@ def tree_stats_to_response(filename, response):
tstats.name = node.name
tstats.count = node.count
tstats.children = []
tstats.line_count = {}
tstats.line_count = getattr(node, 'lines', {})
if parent is not None:
if parent.children is None: