Fix issue 5728: Emulated Hue UPnP crashes on special characters. (#9453)
parent
e2866a1339
commit
258ad8fc16
|
@ -136,7 +136,7 @@ USN: uuid:Socket-1_0-221438K0100073::urn:schemas-upnp-org:device:basic:1
|
|||
# because the data object has not been initialized
|
||||
continue
|
||||
|
||||
if "M-SEARCH" in data.decode('utf-8'):
|
||||
if "M-SEARCH" in data.decode('utf-8', errors='ignore'):
|
||||
# SSDP M-SEARCH method received, respond to it with our info
|
||||
resp_socket = socket.socket(
|
||||
socket.AF_INET, socket.SOCK_DGRAM)
|
||||
|
|
Loading…
Reference in New Issue