Skip to content

Commit c9be496

Browse files
committed
Add error handling for size in duplicates section
1 parent fc8b55c commit c9be496

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

brunnhilde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def write_html_report_section(header, path, file_delimiter, html):
806806
)
807807
# Print info for the group
808808
hash_info = duplicates_dict[hash_value]["info"]
809-
row_size_readable = convert_size(int(hash_info["row_size"]))
809+
row_size_readable = convert_size(int(hash_info.get("row_size", "0")))
810810
html.write("\n<ul>")
811811
if " bytes" in row_size_readable:
812812
html.write(

0 commit comments

Comments
 (0)