def handleFriends(qry):
 try:
  getUserName()
 except:
  return _skypeError()
 try:
  return _findFriends(qry, '', False)
 except EnvironmentError:
  return PyFred('ch.xtin.skypingalfred.error', False).addItem('skypeupdate', 'skype update', 'No Skype Friends Found', 'Use skype update to cache friends!', True, 'update').toXML()
 except:
  return PyFred.GenericError()

def handleFriends ( qry ) : try : getUserName ( ) except : return _skypeError ( ) try : return _findFriends ( qry , '' , False ) except EnvironmentError : return PyFred ( 'ch.xtin.skypingalfred.error' , False ) . addItem ( 'skypeupdate' , 'skype update' , 'No Skype Friends Found' , 'Use skype update to cache friends!' , True , 'update' ) . toXML ( ) except : return PyFred . GenericError ( )
handles the search for friends with autocompletion .