fix(label): Remove encode, it should already be encoded
This commit is contained in:
parent
60f3d79e73
commit
b29acedffd
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue