mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-07-14 12:14:20 +02:00
i3-companion: if SSID is not UTF-8 encoded, use replace
This commit is contained in:
parent
0f2b12e228
commit
2773dfdedc
1 changed files with 1 additions and 1 deletions
|
@ -505,7 +505,7 @@ async def network_manager_status(i3, event, *args):
|
|||
name = await nmap.Ssid
|
||||
strength = int(await nmap.Strength)
|
||||
status.append(""[strength // 34])
|
||||
status.append(bytes(name).decode("utf-8"))
|
||||
status.append(bytes(name).decode("utf-8", errors='replace'))
|
||||
elif (
|
||||
kind == NM_DEVICE_TYPE_ETHERNET
|
||||
and state == NM_DEVICE_STATE_ACTIVATED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue