Skip to content
Snippets Groups Projects
Unverified Commit 535b7431 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

group_by_exception: Only display origin type key if sensible data

parent 75998acd
No related branches found
No related tags found
No related merge requests found
......@@ -102,10 +102,11 @@ def main(origin_types, loader_type):
out = sorted(_map.items(), key=operator.itemgetter(1),
reverse=True)
result[ori_type] = {
'total': total,
'errors': OrderedDict(out),
}
if total != 0:
result[ori_type] = {
'total': total,
'errors': OrderedDict(out),
}
print(json.dumps(result))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment