def exception(self, loop: asyncio.BaseEventLoop, context: dict) -> None:
        '''Log unhandled exceptions from anywhere in the event loop.'''

        Log.error('unhandled exception: %s', context['message'])
        Log.error('%s', context)
        if 'exception' in context:
            Log.error('  %s', context['exception'])
def exception ( self , loop : asyncio . BaseEventLoop , context : dict ) -> None : Log . error ( 'unhandled exception: %s' , context [ 'message' ] ) Log . error ( '%s' , context ) if 'exception' in context : Log . error ( '  %s' , context [ 'exception' ] )
Log unhandled exceptions from anywhere in the event loop.