Handle empty from or subject

This commit is contained in:
Peter J. Holzer 2020-06-14 20:28:20 +02:00
parent b09e1b4613
commit 14130941c7
1 changed files with 1 additions and 1 deletions

View File

@ -1104,7 +1104,7 @@ class Thread:
for r in m.in_reply_to:
p = self.messages[r]
edges.append((p.x, p.y, m.x, m.y))
lines.append((m.date, m.mfrom, m.subject, m.encmsgid))
lines.append((m.date, m.mfrom or "(no sender)", m.subject or "(no subject)", m.encmsgid))
y += 1
s = "<table class='thread'>"
s += "<tr>"