decode error

This commit is contained in:
Jack Robison 2018-07-27 19:32:35 -04:00
parent 418c8c632b
commit 01dc5d75d1
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -60,7 +60,11 @@ class SSDPProtocol(DatagramProtocol):
def handle_datagram(self, datagram, address): def handle_datagram(self, datagram, address):
if address[0] == self.router: if address[0] == self.router:
try:
server_info = self.parse_ssdp_response(datagram) server_info = self.parse_ssdp_response(datagram)
except:
log.exception("error parsing response: %s", datagram.encode('hex'))
raise
if server_info: if server_info:
log.info("received reply (%i bytes) to SSDP request (%fs)", len(datagram), log.info("received reply (%i bytes) to SSDP request (%fs)", len(datagram),
self._reactor.seconds() - self._start) self._reactor.seconds() - self._start)