Skip to main content

silence_polling_error

Suppress specific polling errors in the event loop.

def silence_polling_error(
loop: asyncio.AbstractEventLoop,
context: dict
) - > null

Suppress specific polling errors in the event loop.

Parameters​

NameTypeDescription
loopasyncio.AbstractEventLoopThe event loop instance where the exception occurred.
contextdictA dictionary containing error details, including the exception object and message.

Returns​

TypeDescription
nullNothing is returned; the function either suppresses the error or delegates to the default handler.