Skip to content

Commit 4b5b7e2

Browse files
authored
Ignore encoding errors in Wifi names (darwin) (#1158)
1 parent eadb3e7 commit 4b5b7e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vorta/network_status/darwin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_current_wifi(self) -> Optional[str]:
2020
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
2121
out, err = process.communicate()
2222
process.wait()
23-
for line in out.decode("utf-8").split('\n'):
23+
for line in out.decode(errors='ignore').split('\n'):
2424
split_line = line.strip().split(':')
2525
if split_line[0] == 'SSID':
2626
return split_line[1].strip()

0 commit comments

Comments
 (0)