Check that category is returned

main
Bob Mottram 2024-11-03 21:19:23 +00:00
parent 2b25c24b59
commit bb122c5647
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,8 @@ def html_hash_tag_swarm(base_dir: str, actor: str, translate: {}) -> str:
if os.path.isfile(category_filename): if os.path.isfile(category_filename):
category_str = \ category_str = \
get_hashtag_category(base_dir, hash_tag_name) get_hashtag_category(base_dir, hash_tag_name)
if len(category_str) < max_tag_length: if category_str and \
len(category_str) < max_tag_length:
if '#' not in category_str and \ if '#' not in category_str and \
'&' not in category_str and \ '&' not in category_str and \
'"' not in category_str and \ '"' not in category_str and \