Show errors if like notification cannot be saved

main
Bob Mottram 2020-07-13 09:56:24 +01:00
parent 792052a814
commit 092bc00d1e
1 changed files with 4 additions and 0 deletions

View File

@ -1752,11 +1752,15 @@ def likeNotify(baseDir: str, domain: str, onionDomain: str,
with open(prevLikeFile, 'w+') as fp: with open(prevLikeFile, 'w+') as fp:
fp.write(likeStr) fp.write(likeStr)
except BaseException: except BaseException:
print('ERROR: unable to save previous like notification ' +
prevLikeFile)
pass pass
try: try:
with open(likeFile, 'w+') as fp: with open(likeFile, 'w+') as fp:
fp.write(likeStr) fp.write(likeStr)
except BaseException: except BaseException:
print('ERROR: unable to write like notification file ' +
likeFile)
pass pass