Skip to content

Commit 5c42854

Browse files
author
Karl-Johan Grahn
committed
Decode body
1 parent 1807056 commit 5c42854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def callback(ch, method, properties, body):
14-
print(" [x] Received %r" % body)
14+
print(" [x] Received %r" % body.decode())
1515
time.sleep(body.count(b'.'))
1616
print(" [x] Done")
1717
ch.basic_ack(delivery_tag=method.delivery_tag)

0 commit comments

Comments
 (0)