We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7453a4b commit ea936afCopy full SHA for ea936af
NetworkManager.py
@@ -13,6 +13,7 @@
13
import struct
14
import sys
15
import time
16
+import warnings
17
import weakref
18
import xml.etree.ElementTree as etree
19
@@ -605,7 +606,12 @@ def base_to_python(val):
605
606
607
@staticmethod
608
def ssid_to_python(ssid):
- return bytes().join(ssid).decode('utf-8')
609
+ try:
610
+ return bytes().join(ssid).decode('utf-8')
611
+ except UnicodeDecodeError:
612
+ ssid = bytes().join(ssid).decode('utf-8', 'replace')
613
+ warnings.warn("Unable to decode ssid %s properly" % ssid, UnicodeWarning)
614
+ return ssid
615
616
617
def ssid_to_dbus(ssid):
0 commit comments