mosquito / aiormq

Pure python AMQP 0.9.1 asynchronous client library
Other
276 stars 58 forks source link

Fix getting futures exceptions #154

Closed decaz closed 1 year ago

decaz commented 1 year ago

Access to asyncio.Future.exception() should be protected from unexpected raise of asyncio.CancelledError exception.

decaz commented 1 year ago

@mosquito I see there is another place where exception() method of future is being used: https://github.com/mosquito/aiormq/blob/9696466a5cdaa73ace6d41153bc2a6c79cb3ceae/aiormq/base.py#L98-L101

But I guess it's normal that asyncio.CancelledError can be raised here. Am I right?