def _try_get_string(dev, index, langid=None, default_str_i0='', default_access_error='Error Accessing String'):
 if (index == 0):
  string = default_str_i0
 else:
  try:
   if (langid is None):
    string = util.get_string(dev, index)
   else:
    string = util.get_string(dev, index, langid)
  except:
   string = default_access_error
 return string

def _try_get_string ( dev , index , langid = None , default_str_i0 = '' , default_access_error = 'Error Accessing String' ) : if ( index == 0 ) : string = default_str_i0 else : try : if ( langid is None ) : string = util . get_string ( dev , index ) else : string = util . get_string ( dev , index , langid ) except : string = default_access_error return string
try to get a string .