mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
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.
This commit is contained in:
parent
e54ce8643b
commit
5ea60823f5
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user