diff --git a/utils.py b/utils.py index 4d252991..8553a652 100644 --- a/utils.py +++ b/utils.py @@ -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: