Commit 4fd8368a authored by Matias Guijarro's avatar Matias Guijarro Committed by Valentin Valls
Browse files

fix issue #2776: encode to UTF-8 when sending message to ICAT metadata

See pytango issue #72
parent d5e7dde9
......@@ -727,6 +727,9 @@ class IcatIngesterProxy(object):
:param str msg_type: "comment" by default
:param dict comm_state:
msg = msg.encode(
"latin-1", errors="replace"
) # this is to circumvent pytango issue #72
if self.get_state(comm_state=comm_state) == DevState.FAULT:
comm_state["error_msg"] = "Failed to send the e-logbook message"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment