From ff369bcd793744c8e7c20658063a52ed9f8f8212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Thu, 9 Jan 2020 00:49:02 +0100 Subject: [PATCH] v0.103 --- CHANGELOG.md | 4 ++++ coolamqp/__init__.py | 2 +- coolamqp/clustering/cluster.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebcaf16..1fc8b09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# v0.103: + +* bugfix in handling exchange in publish + # v0.102: * due to noticed behaviour on some Linuxes that changing epoll from another thread diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py index db0cbd0..514f1be 100644 --- a/coolamqp/__init__.py +++ b/coolamqp/__init__.py @@ -1,2 +1,2 @@ # coding=UTF-8 -__version__ = '0.102' +__version__ = '0.103' diff --git a/coolamqp/clustering/cluster.py b/coolamqp/clustering/cluster.py index c9d5d59..be6fae1 100644 --- a/coolamqp/clustering/cluster.py +++ b/coolamqp/clustering/cluster.py @@ -159,7 +159,7 @@ class Cluster(object): exchange = exchange.name.encode('utf8') elif exchange is None: exchange = b'' - else: + elif isinstance(exchange, six.text_type): exchange = exchange.encode('utf8') if isinstance(routing_key, six.text_type): -- GitLab