Browse Source

Fix typing

Lipu Fei 5 years ago
parent
commit
3ddc2466f8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py

+ 3 - 1
plugins/UM3NetworkPrinting/src/Network/ZeroConfClient.py

@@ -123,7 +123,9 @@ class ZeroConfClient:
 
         # Request more data if info is not complete
         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 and info.address:
             type_of_device = info.properties.get(b"type", None)