Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
4fd8368a
Commit
4fd8368a
authored
May 22, 2021
by
Matias Guijarro
Committed by
Valentin Valls
May 22, 2021
Browse files
fix issue
#2776
: encode to
UTF-8
when sending message to ICAT metadata
See pytango issue
#72
parent
d5e7dde9
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/icat/ingester.py
View file @
4fd8368a
...
...
@@ -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
:
return
comm_state
[
"error_msg"
]
=
"Failed to send the e-logbook message"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment