Debug if html could not be generated for announce

main
Bob Mottram 2021-09-04 13:49:50 +01:00
parent cffc8089c8
commit ce5c50f544
1 changed files with 5 additions and 2 deletions

View File

@ -1611,6 +1611,7 @@ def _receiveAnnounce(recentPostsCache: {},
manuallyApproveFollowers = \ manuallyApproveFollowers = \
followerApprovalActive(baseDir, nickname, domain) followerApprovalActive(baseDir, nickname, domain)
notDM = True notDM = True
if debug:
print('Generating html for announce ' + postJsonObject['id']) print('Generating html for announce ' + postJsonObject['id'])
announceHtml = \ announceHtml = \
individualPostAsHtml(signingPrivateKeyPem, True, individualPostAsHtml(signingPrivateKeyPem, True,
@ -1629,7 +1630,9 @@ def _receiveAnnounce(recentPostsCache: {},
showIndividualPostIcons, showIndividualPostIcons,
manuallyApproveFollowers, manuallyApproveFollowers,
False, True, False) 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 return True