def load_state_value(self, section, option):
"""Load value from state."""
try:
logger.debug("Loading state [{}] {}".format(section, option))
return self.state.get(section, option)
except (configparser.NoSectionError, configparser.NoOptionError):
raise ValueError("State not saved or invalid.")
评论列表
文章目录