def try_encode(field_encoders, entity_dict):
        """
        Inner encoding and try return string from entity dictionary
        :param field_encoders:
        :param entity_dict:
        :return:
        """
        result = ''
        for field_encoder in field_encoders:
            try:
                result += field_encoder.encode(entity_dict)
            except KeyError as e:
                return False
        return result
def try_encode ( field_encoders , entity_dict ) : result = '' for field_encoder in field_encoders : try : result += field_encoder . encode ( entity_dict ) except KeyError as e : return False return result
Inner encoding and try return string from entity dictionary
        :param field_encoders:
        :param entity_dict:
        :return: