Check for get_json failure

main
Bob Mottram 2022-12-29 09:51:41 +00:00
parent 3986a7044e
commit c25bee89cd
1 changed files with 3 additions and 1 deletions

View File

@ -98,7 +98,9 @@ def html_conversation_view(post_id: str,
dogwhistles,
minimize_all_images, None)
if post_str:
conv_str += text_mode_separator + separator_str + post_str
# check for "HTTP/1.1 303 See Other Server"
if not post_str.startswith('HTTP/'):
conv_str += text_mode_separator + separator_str + post_str
conv_str += text_mode_separator + html_footer()
return conv_str