mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
55c351e8a6
commit
df7d650b5b
3
cache.py
3
cache.py
|
@ -66,7 +66,8 @@ def storePersonInCache(baseDir: str, personUrl: str,
|
|||
return
|
||||
|
||||
# store to file
|
||||
if allowWriteToFile:
|
||||
if not allowWriteToFile:
|
||||
return
|
||||
if os.path.isdir(baseDir+'/cache/actors'):
|
||||
cacheFilename = baseDir + '/cache/actors/' + \
|
||||
personUrl.replace('/', '#')+'.json'
|
||||
|
|
|
@ -161,7 +161,7 @@ def _saveIndividualPostAsHtmlToCache(baseDir: str,
|
|||
fp.write(postHtml)
|
||||
return True
|
||||
except Exception as e:
|
||||
print('ERROR: saving post to cache ' + str(e))
|
||||
print('ERROR: saving post to cache, ' + str(e))
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue