From 246df6e2d412ad588d891a26e1587ae64ae58033 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl>
Date: Wed, 20 May 2020 18:35:35 +0200
Subject: [PATCH] 1.0.6_b2

---
 coolamqp/__init__.py       | 2 +-
 coolamqp/attaches/utils.py | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/coolamqp/__init__.py b/coolamqp/__init__.py
index 8d456d3..06bcb9d 100644
--- a/coolamqp/__init__.py
+++ b/coolamqp/__init__.py
@@ -1,2 +1,2 @@
 # coding=UTF-8
-__version__ = '1.0.6_b1'
+__version__ = '1.0.6_b2'
diff --git a/coolamqp/attaches/utils.py b/coolamqp/attaches/utils.py
index e9a693c..b331cd6 100644
--- a/coolamqp/attaches/utils.py
+++ b/coolamqp/attaches/utils.py
@@ -18,6 +18,9 @@ def close_future(fut, span):  # type: (Future, opentracing.Span) -> Future
     except ImportError:
         return fut
 
+    if span is None:
+        return fut
+
     def inner_close(fut):   # type: (Future) -> None
         exc = fut.exception()
         if exc is not None:
-- 
GitLab