Skip to content

Commit

Permalink
Handle message.msg being None in viewer.html
Browse files Browse the repository at this point in the history
Fixes a TypeError: argument of type 'NoneType' is not iterable for me.
  • Loading branch information
gunchev authored Apr 10, 2024
1 parent de37f87 commit affbe28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slackviewer/templates/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3 id="mpim-title">Group Direct Messages</h3>
<div class="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)}}
Expand Down

0 comments on commit affbe28

Please sign in to comment.