forked from indymedia/epicyon
Avoid empty categories
parent
9873382d4f
commit
61ee919a1f
3
utils.py
3
utils.py
|
@ -47,6 +47,9 @@ def getHashtagCategories(baseDir: str, category=None) -> None:
|
||||||
with open(categoryFilename, 'r') as fp:
|
with open(categoryFilename, 'r') as fp:
|
||||||
categoryStr = fp.read()
|
categoryStr = fp.read()
|
||||||
|
|
||||||
|
if not categoryStr:
|
||||||
|
continue
|
||||||
|
|
||||||
if category:
|
if category:
|
||||||
# only return a dictionary for a specific category
|
# only return a dictionary for a specific category
|
||||||
if categoryStr != category:
|
if categoryStr != category:
|
||||||
|
|
Loading…
Reference in New Issue