Less indentation

merge-requests/30/head
Bob Mottram 2021-06-22 12:25:28 +01:00
parent 55c351e8a6
commit df7d650b5b
2 changed files with 8 additions and 7 deletions

View File

@ -66,7 +66,8 @@ def storePersonInCache(baseDir: str, personUrl: str,
return return
# store to file # store to file
if allowWriteToFile: if not allowWriteToFile:
return
if os.path.isdir(baseDir+'/cache/actors'): if os.path.isdir(baseDir+'/cache/actors'):
cacheFilename = baseDir + '/cache/actors/' + \ cacheFilename = baseDir + '/cache/actors/' + \
personUrl.replace('/', '#')+'.json' personUrl.replace('/', '#')+'.json'

View File

@ -161,7 +161,7 @@ def _saveIndividualPostAsHtmlToCache(baseDir: str,
fp.write(postHtml) fp.write(postHtml)
return True return True
except Exception as e: except Exception as e:
print('ERROR: saving post to cache ' + str(e)) print('ERROR: saving post to cache, ' + str(e))
return False return False