コード例 #1
0
    def config_install_interval(self):
        try:
            interval = self.get_item("general.config_install_interval")
        except ConanException:
            return None

        try:
            return timedelta_from_text(interval)
        except Exception:
            raise ConanException(
                "Incorrect definition of general.config_install_interval: %s" %
                interval)
コード例 #2
0
    def config_install_interval(self):
        item = "general.config_install_interval"
        try:
            interval = self.get_item(item)
        except ConanException:
            return None

        try:
            return timedelta_from_text(interval)
        except Exception:
            self.rm_item(item)
            raise ConanException("Incorrect definition of general.config_install_interval: {}. "
                                 "Removing it from conan.conf to avoid possible loop error."
                                 .format(interval))