From affbe28e2045098fa5b35236e398c334daeb8d3e Mon Sep 17 00:00:00 2001 From: "Doncho N. Gunchev" Date: Wed, 10 Apr 2024 22:46:05 +0300 Subject: [PATCH] Handle message.msg being None in viewer.html Fixes a TypeError: argument of type 'NoneType' is not iterable for me. --- slackviewer/templates/viewer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slackviewer/templates/viewer.html b/slackviewer/templates/viewer.html index 8e17c2f..714752f 100644 --- a/slackviewer/templates/viewer.html +++ b/slackviewer/templates/viewer.html @@ -62,7 +62,7 @@

Group Direct Messages

{% for message in messages %} {% if message.msg or message.files %} - {% if "Thread Reply:" in message.msg %} + {% if message.msg and "Thread Reply:" in message.msg %} {{render_message(message, None, no_external_references, reply=True)}} {% else %} {{render_message(message, None, no_external_references, reply=False)}}