From 8700cbe4e85ee130430baeba62c254cf1d07353b Mon Sep 17 00:00:00 2001 From: Simon Edwards Date: Mon, 1 Apr 2019 15:22:38 +0200 Subject: [PATCH] Mypy fix CL-1266 --- plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py index 07dc962bf8..0c044bbb56 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py @@ -152,7 +152,7 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice): # However, for manually added printers, the local IP address is used in lieu of a proper # network key, so check for that as well - if network_key.find(self.clusterData.host_internal_ip): + if self.clusterData.host_internal_ip is not None and network_key.find(self.clusterData.host_internal_ip): return True return False