Fix dead Sonos web interface even more (#12851)

This commit is contained in:
Anders Melchiorsen 2018-03-03 09:19:22 +01:00 committed by Paulus Schoutsen
parent 7d8a309017
commit d63cf94d6d

View File

@ -129,7 +129,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
"""Avoid SoCo 0.14 event thread dying from invalid xml.""" """Avoid SoCo 0.14 event thread dying from invalid xml."""
try: try:
return orig_parse_event_xml(xml) return orig_parse_event_xml(xml)
except soco.exceptions.SoCoException: # pylint: disable=broad-except
except Exception as ex:
_LOGGER.debug("Dodged exception: %s %s", type(ex), str(ex))
return {} return {}
soco.events.parse_event_xml = safe_parse_event_xml soco.events.parse_event_xml = safe_parse_event_xml