Skip to content

Commit ac6c2e3

Browse files
committed
fix user's name can be None
1 parent c4ded92 commit ac6c2e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "t-export"
3-
version = "0.1.3b2"
3+
version = "0.1.3b3"
44
description = "Telegram chats export tool."
55
authors = ["RuslanUC <dev_ruslan_uc@protonmail.com>"]
66
readme = "README.md"

texport/html/avatar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def to_html(self) -> str:
1616
return f"""
1717
<div class="pull_left userpic_wrap{forward}">
1818
<div class="userpic userpic8" style="width: 42px; height: 42px">
19-
<div class="initials" style="line-height: 42px">{name[0]}</div>
19+
<div class="initials" style="line-height: 42px">{name[0] if name is not None else "N"}</div>
2020
</div>
2121
</div>
2222
"""

0 commit comments

Comments
 (0)