Skip to content

Commit

Permalink
fix: ignore None type categories
Browse files Browse the repository at this point in the history
  • Loading branch information
desobolevsky committed Jul 30, 2024
1 parent 5a185b0 commit 602721c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ def render_categorical_unicode(
for category_alias_name, category_alias_counts in sorted(
summary["category_alias_char_counts"].items(), key=lambda x: -len(x[1])
):
if category_alias_name is None:
continue

category_alias_name = category_alias_name.replace("_", " ")
cats.append(
FrequencyTable(
Expand Down

0 comments on commit 602721c

Please sign in to comment.