def _report_invalid_attribute(name, value, reason):
 logging.error('invalid Cookie attribute (%s): %r=%r', reason, name, value)

def _report_invalid_attribute ( name , value , reason ) : logging . error ( 'invalid Cookie attribute (%s): %r=%r' , reason , name , value )
how this module logs a bad attribute when exception suppressed .