Skip to content
Snippets Groups Projects
Commit 1728bf54 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

alerts.xmpp: fix encoding for LVAlerts in Python 3

parent a343b132
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ def issue_xmpp_alerts(event_or_superevent, alert_type, serialized_object,
for node_name in node_names:
# Calculate unique message_id and log
message_id = sha1(node_name + msg).hexdigest()
message_id = sha1((node_name + msg).encode()).hexdigest()
# Log message
logger.info(("issue_xmpp_alerts: sending alert type {alert_type} "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment