From 11cf409d71f550c88ae457f57d444930196199e5 Mon Sep 17 00:00:00 2001 From: ChrisTerBeke Date: Fri, 15 Feb 2019 17:07:45 +0100 Subject: [PATCH] Fix codestyle --- plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py index 223d33c7b8..7b5add276a 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDevice.py @@ -67,8 +67,8 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice): # An example of why this is needed is the selection of the compatible file type when exporting the tool path. properties = { b"address": b"", - b"name": cluster.host_name.encode(), - b"firmware_version": cluster.host_version.encode(), + b"name": cluster.host_name.encode() if cluster.host_name else b"", + b"firmware_version": cluster.host_version.encode() if cluster.host_version else b"", b"printer_type": b"" }