Skip to content

Commit

Permalink
* error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
smurfix committed Jan 18, 2023
1 parent 99a9236 commit 62ca723
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async_amqp/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from . import properties as amqp_properties
from .envelope import Envelope, ReturnEnvelope
from .future import Future
from .exceptions import AmqpClosedConnection, SynchronizationError
from .exceptions import AmqpClosedConnection, ChannelClosed, SynchronizationError

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -64,7 +64,7 @@ async def __aexit__(self, *tb):
with anyio.CancelScope(shield=True):
try:
await self.channel.basic_cancel(self.consumer_tag)
except AmqpClosedConnection:
except (AmqpClosedConnection,ChannelClosed):
pass
await self._q_w.aclose()
await self._q_r.aclose()
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
async-amqp (0.2.14-1) unstable; urgency=medium

* error handling

-- Matthias Urlichs <[email protected]> Wed, 18 Jan 2023 19:33:39 +0100

async-amqp (0.2.13-1) unstable; urgency=medium

* Buffer incoming data
Expand Down

0 comments on commit 62ca723

Please sign in to comment.