From ce5c50f544e39a648f63eb4ff9585752423ff874 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 4 Sep 2021 13:49:50 +0100 Subject: [PATCH] Debug if html could not be generated for announce --- inbox.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inbox.py b/inbox.py index efeba1c31..a04ddfbc1 100644 --- a/inbox.py +++ b/inbox.py @@ -1611,7 +1611,8 @@ def _receiveAnnounce(recentPostsCache: {}, manuallyApproveFollowers = \ followerApprovalActive(baseDir, nickname, domain) notDM = True - print('Generating html for announce ' + postJsonObject['id']) + if debug: + print('Generating html for announce ' + postJsonObject['id']) announceHtml = \ individualPostAsHtml(signingPrivateKeyPem, True, recentPostsCache, maxRecentPosts, @@ -1629,7 +1630,9 @@ def _receiveAnnounce(recentPostsCache: {}, showIndividualPostIcons, manuallyApproveFollowers, False, True, False) - print('Generating html for announce ' + str(announceHtml)) + if not announceHtml: + print('WARN: Unable to generate html for announce ' + + postJsonObject['id']) return True