Handle cases with no avatar image

main
Bob Mottram 2020-06-28 10:40:59 +01:00
parent b3597e19a6
commit bdfd1c1030
1 changed files with 6 additions and 6 deletions

View File

@ -6082,7 +6082,7 @@ def htmlProfileAfterSearch(recentPostsCache: {}, maxRecentPosts: int,
avatarDescription = avatarDescription.replace('</p>', '') avatarDescription = avatarDescription.replace('</p>', '')
profileStr = ' <div class="hero-image">' profileStr = ' <div class="hero-image">'
profileStr += ' <div class="hero-text">' profileStr += ' <div class="hero-text">'
print('avatarDescription: ' + str(avatarDescription)) if avatarUrl:
profileStr += \ profileStr += \
' <img loading="lazy" src="' + avatarUrl + \ ' <img loading="lazy" src="' + avatarUrl + \
'" alt="' + avatarDescription + '" title="' + \ '" alt="' + avatarDescription + '" title="' + \