def options(self, section): """ Handle missing section error. """ try: return BaseConfig.options(self, section) except configparser.NoSectionError: self.log.warn(_("This theme has no section {0}.").format(section)) return []
def __init__(self, theme): BaseConfig.__init__(self, theme) self.log = logging.getLogger("Pyggs.Theme")