mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:09:00 +08:00
Fix typing
This commit is contained in:
parent
bd7b8f4a93
commit
f9739e2af8
@ -123,7 +123,9 @@ class ZeroConfClient:
|
|||||||
|
|
||||||
# Request more data if info is not complete
|
# Request more data if info is not complete
|
||||||
if not info.address:
|
if not info.address:
|
||||||
info = zero_conf.get_service_info(service_type, name)
|
new_info = zero_conf.get_service_info(service_type, name)
|
||||||
|
if new_info is not None:
|
||||||
|
info = new_info
|
||||||
|
|
||||||
if info:
|
if info:
|
||||||
type_of_device = info.properties.get(b"type", None)
|
type_of_device = info.properties.get(b"type", None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user