forked from indymedia/epicyon
Debug
parent
3f98e7eb75
commit
0bbede6a83
3
utils.py
3
utils.py
|
@ -600,10 +600,13 @@ def clearFromPostCaches(baseDir: str, postId: str) -> None:
|
|||
continue
|
||||
cacheDir = os.path.join(baseDir + '/accounts/postcache', acct)
|
||||
postFilename = cacheDir + filename
|
||||
print('clearFromPostCaches: ' + postFilename)
|
||||
if os.path.isfile(postFilename):
|
||||
try:
|
||||
os.remove(postFilename)
|
||||
except BaseException:
|
||||
print('WARN: clearFromPostCaches file not removed ' +
|
||||
postFilename)
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue