(dev, index, langid = None, default_str_i0 = "",
        default_access_error = "Error Accessing String")
return string
try to get a string, but return a string no matter what
try to get a string, but return a string no matter what
try to get a string but return a string no matter what
def _try_get_string(dev, index, langid = None, default_str_i0 = "",
        default_access_error = "Error Accessing String"):
    """ try to get a string, but return a string no matter what
    """
    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