def _report_invalid_cookie(data):
 logging.error('invalid Cookie: %r', data)

def _report_invalid_cookie ( data ) : logging . error ( 'invalid Cookie: %r' , data )
how this module logs a bad cookie when exception suppressed .