Less indentation

merge-requests/30/head
Bob Mottram 2023-09-02 12:47:24 +01:00
parent 62dcf97363
commit 9da08aeb6b
1 changed files with 26 additions and 24 deletions

View File

@ -60,6 +60,8 @@ def get_hashtag_categories(base_dir: str,
hashtag = catfile.split('.')[0] hashtag = catfile.split('.')[0]
if len(hashtag) > MAX_TAG_LENGTH: if len(hashtag) > MAX_TAG_LENGTH:
continue continue
category_str = None
with open(category_filename, 'r', encoding='utf-8') as fp_category: with open(category_filename, 'r', encoding='utf-8') as fp_category:
category_str = fp_category.read() category_str = fp_category.read()