Avoid empty categories

main
Bob Mottram 2020-12-02 13:19:56 +00:00
parent 9873382d4f
commit 61ee919a1f
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ def getHashtagCategories(baseDir: str, category=None) -> None:
with open(categoryFilename, 'r') as fp:
categoryStr = fp.read()
if not categoryStr:
continue
if category:
# only return a dictionary for a specific category
if categoryStr != category: