Avoid empty categories

This commit is contained in:
bashrc committed 2020-12-02 13:19:56 +00:00
1 parent 9873382d4f
commit 61ee919a1f
1 file changed
+3
+3
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: