mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Merge branch 'fix_attr_addresses_not_found' of github.com:Ultimaker/Cura
This commit is contained in:
commit
2806dc6947
1 changed files with 3 additions and 3 deletions
|
@ -129,16 +129,16 @@ class ZeroConfClient:
|
|||
|
||||
for record in zero_conf.cache.entries_with_name(info.server):
|
||||
info.update_record(zero_conf, time(), record)
|
||||
if info.addresses:
|
||||
if hasattr(info, "addresses") and info.addresses:
|
||||
break
|
||||
|
||||
# Request more data if info is not complete
|
||||
if not info.addresses:
|
||||
if not hasattr(info, "addresses") or not info.addresses:
|
||||
new_info = zero_conf.get_service_info(service_type, name)
|
||||
if new_info is not None:
|
||||
info = new_info
|
||||
|
||||
if info and info.addresses:
|
||||
if info and hasattr(info, "addresses") and info.addresses:
|
||||
type_of_device = info.properties.get(b"type", None)
|
||||
if type_of_device:
|
||||
if type_of_device == b"printer":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue