main
Bob Mottram 2020-10-18 20:35:47 +01:00
parent 3f98e7eb75
commit 0bbede6a83
1 changed files with 3 additions and 0 deletions

View File

@ -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