Skip to content

Commit

Permalink
Don't encode sent message if it is of type bytes (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
yehonatanz authored Oct 7, 2020
1 parent c838f41 commit 54b260b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rsmq/cmd/send_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def exec_command(self):
delay = float(delay or 0)

message = self.get_message
if self.get_encode or not isinstance(message, str):
if self.get_encode or not isinstance(message, (str, bytes)):
message = encode_message(message)
self.log.debug("Encoded message: %s", message)

Expand Down

0 comments on commit 54b260b

Please sign in to comment.