Skip to content

Commit f9e3231

Browse files
author
Alan Christie
committed
chore: Switch to decode
1 parent e0e2064 commit f9e3231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ async def on_message_for_websocket(
449449
elif msg:
450450
_LOGGER.info("PREPARING %s", message_context.offset)
451451
# We know the AMQPMessage (as a string will start "b'" and end "'"
452-
message_string = str(msg)[2:-1]
452+
message_string = msg.decode("utf-8")
453453
_LOGGER.info("TRIMMED %s", message_context.offset)
454454
if message_string[0] != "{":
455455
_LOGGER.info("IS PROTOBUF %s", message_context.offset)

0 commit comments

Comments
 (0)