From f9acda3bf5e355d8532744969f4bef2c836c331b Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Sat, 3 Aug 2019 22:23:56 +0200 Subject: [PATCH] Duh --- asyncamqp/channel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncamqp/channel.py b/asyncamqp/channel.py index 85c027d..a8642dc 100644 --- a/asyncamqp/channel.py +++ b/asyncamqp/channel.py @@ -15,7 +15,7 @@ from . import exceptions from .envelope import Envelope, ReturnEnvelope from .future import Future -from .exceptions import AmqpClosedConnection +from .exceptions import AmqpClosedConnection, SynchronizationError logger = logging.getLogger(__name__) @@ -293,7 +293,7 @@ async def close(self, reply_code=0, reply_text="Normal Shutdown"): async def close_ok(self, frame): try: w = self._get_waiter('close') - except asyncamqp.exceptions.SynchronizationError: + except SynchronizationError: pass else: await w.set_result(True)