author | Edouard Tisserant |
Wed, 09 Jan 2019 14:10:07 +0100 | |
changeset 2482 | cb53d3bf3380 |
parent 2481 | 6cd7dae360d4 |
child 2483 | 6a7f92b84855 |
--- a/controls/DiscoveryPanel.py Wed Jan 09 14:09:02 2019 +0100 +++ b/controls/DiscoveryPanel.py Wed Jan 09 14:10:07 2019 +0100 @@ -231,6 +231,8 @@ called when a service with the desired type is discovered. ''' info = self.ZeroConfInstance.get_service_info(_type, name) + if info is None: + return svcname = name.split(".")[0] typename = info.properties.get("protocol", None) ip = str(socket.inet_ntoa(info.address))