mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-01-08 12:05:27 -05:00
Strip unrenderable unicode sequences in info box
This commit is contained in:
parent
d3ddfd6c9c
commit
b4c656770f
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class AnnounceInfo(urwid.WidgetWrap):
|
|||
type_string = "Peer " + g["peer"]
|
||||
|
||||
try:
|
||||
data_str = announce[2].decode("utf-8")
|
||||
data_str = strip_modifiers(announce[2].decode("utf-8"))
|
||||
data_style = ""
|
||||
if trust_level != DirectoryEntry.TRUSTED and len(data_str) > 32:
|
||||
data_str = data_str[:32]+" [...]"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue