From b29acedffdfc9adaf4e64385cd75bfb12d3c63c8 Mon Sep 17 00:00:00 2001 From: Andreas Mieke Date: Wed, 17 Apr 2024 21:55:45 -0400 Subject: [PATCH] fix(label): Remove encode, it should already be encoded --- inventree_phomemo/phomemo_label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventree_phomemo/phomemo_label.py b/inventree_phomemo/phomemo_label.py index a0b0c04..5d99aa0 100644 --- a/inventree_phomemo/phomemo_label.py +++ b/inventree_phomemo/phomemo_label.py @@ -63,7 +63,7 @@ class PhomemoLabelPlugin(LabelPrintingMixin, SettingsMixin, InvenTreePlugin): print_socket.settimeout(5) print_socket.connect((ip_address, port)) data = label_image.tobytes("PNG") - print_socket.send(data.encode()) + print_socket.send(data) print_socket.close() except Exception as error: raise ConnectionError('Error connecting to printer server: ' + str(error))