forked from indymedia/epicyon
Show errors if like notification cannot be saved
parent
792052a814
commit
092bc00d1e
4
inbox.py
4
inbox.py
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue