mosquito / aio-pika

AMQP 0.9 client designed for asyncio and humans.
https://aio-pika.readthedocs.org/
Apache License 2.0
1.23k stars 187 forks source link

Prevent 'Task exception was never retrieved' #524

Closed torarvid closed 1 year ago

torarvid commented 1 year ago

If future.exception() is not called (even on cancelled futures), it seems Python will then log 'Task exception was never retrieved'. Rewriting this logic slightly should hopefully achieve the same functionality while preventing the Python errors.

coveralls commented 1 year ago

Coverage Status

Coverage: 88.84% (-0.04%) from 88.878% when pulling a6ce88e2bb9e2c241848f882a2dc2e39e539415e on torarvid:torarvid/prevent-task-exception into 05b7cfd9efa88b2a0284816e4f351b454fe2c162 on mosquito:master.