def authenticate_none(controller, suppress_ctl_errors=True):
 try:
  auth_response = _msg(controller, 'AUTHENTICATE')
  if (str(auth_response) != 'OK'):
   try:
    controller.connect()
   except:
    pass
   raise OpenAuthRejected(str(auth_response), auth_response)
 except stem.ControllerError as exc:
  try:
   controller.connect()
  except:
   pass
  if (not suppress_ctl_errors):
   raise exc
  else:
   raise OpenAuthRejected(('Socket failed (%s)' % exc))

def authenticate_none ( controller , suppress_ctl_errors = True ) : try : auth_response = _msg ( controller , 'AUTHENTICATE' ) if ( str ( auth_response ) != 'OK' ) : try : controller . connect ( ) except : pass raise OpenAuthRejected ( str ( auth_response ) , auth_response ) except stem . ControllerError as exc : try : controller . connect ( ) except : pass if ( not suppress_ctl_errors ) : raise exc else : raise OpenAuthRejected ( ( 'Socket failed (%s)' % exc ) )
authenticates to an open control socket .