Skip to main content

silence_polling_error

Suppress specific polling errors in the event loop.

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

Suppress specific polling errors in the event loop.

Parameters

NameTypeDescription
loopAbstractEventLoopThe event loop instance where the error occurred. It is used to call the default exception handler if the error is not suppressed.
contextdictA dictionary containing information about the exception, typically including the 'exception' key with the exception object.

Returns

TypeDescription
nullThis function does not return any value; it either suppresses the error or delegates to the default exception handler.