From 5ea60823f568a18a31fcdd8f653c1cc4235c886c Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 13 Dec 2019 10:54:01 +0100 Subject: [PATCH] Don't crash if address is still none after getting info This can happen (starting somewhere between zeroconf version 21.0 and 24.0). Contributes to issue CURA-7032. --- plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py b/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py index 205a71b5cb..bfc2725fb0 100644 --- a/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py +++ b/plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py @@ -125,7 +125,7 @@ class ZeroConfClient: if not info.address: info = zero_conf.get_service_info(service_type, name) - if info: + if info and info.address: type_of_device = info.properties.get(b"type", None) if type_of_device: if type_of_device == b"printer":