From 092bc00d1eb3d45affbe344fc901b9a5342d238e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 13 Jul 2020 09:56:24 +0100 Subject: [PATCH] Show errors if like notification cannot be saved --- inbox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inbox.py b/inbox.py index ffeaed50..fa9e0ca9 100644 --- a/inbox.py +++ b/inbox.py @@ -1752,11 +1752,15 @@ def likeNotify(baseDir: str, domain: str, onionDomain: str, with open(prevLikeFile, 'w+') as fp: fp.write(likeStr) except BaseException: + print('ERROR: unable to save previous like notification ' + + prevLikeFile) pass try: with open(likeFile, 'w+') as fp: fp.write(likeStr) except BaseException: + print('ERROR: unable to write like notification file ' + + likeFile) pass