forked from indymedia/epicyon
Don't check file
parent
b2e1b2e920
commit
512d1811c5
1
utils.py
1
utils.py
|
@ -38,7 +38,6 @@ def setHashtagCategory(baseDir: str, hashtag: str, category: str) -> bool:
|
|||
if not os.path.isfile(hashtagFilename):
|
||||
return False
|
||||
categoryFilename = baseDir + '/tags/' + hashtag + '.category'
|
||||
if os.path.isfile(categoryFilename):
|
||||
with open(categoryFilename, 'w+') as fp:
|
||||
fp.write(category)
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue