Fix issue 5728: Emulated Hue UPnP crashes on special characters. (#9453)

pull/9460/head
Paul Krischer 2017-09-16 22:21:09 +02:00 committed by Fabian Affolter
parent e2866a1339
commit 258ad8fc16
1 changed files with 1 additions and 1 deletions

View File

@ -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)