def _get_attribute(self, element, attribute): if RUNTIME_CONFIG: try: if element in RUNTIME_CONFIG: for attribute_dict in RUNTIME_CONFIG[element]: if attribute in attribute_dict: return attribute_dict[attribute] except Exception as issue: raise KiwiRuntimeConfigFormatError( f'{type(issue).__name__}: {issue}')
def _get_attribute(self, element, attribute): if self.config_data: try: if element in self.config_data: for attribute_dict in self.config_data[element]: if attribute in attribute_dict: return attribute_dict[attribute] except Exception as e: raise KiwiRuntimeConfigFormatError( '{error_type}: {error_text}'.format( error_type=type(e).__name__, error_text=format(e)))