From 4a6c729c9bf88a8cf7f74474c943f791b92d1525 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Tue, 15 Oct 2024 14:13:35 -0600 Subject: [PATCH] source: new format is version 2 --- subiquity/server/controllers/source.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/subiquity/server/controllers/source.py b/subiquity/server/controllers/source.py index ee733c2ee..18a8d2d99 100644 --- a/subiquity/server/controllers/source.py +++ b/subiquity/server/controllers/source.py @@ -114,8 +114,10 @@ def start(self): self.app.hub.subscribe( (InstallerChannels.CONFIGURED, "locale"), self._set_locale ) - if self.model.catalog.version != 1: - raise Exception("unknown source catalog version") + if self.model.catalog.version not in range(1, 3): + raise Exception( + f"unknown source catalog version {self.model.catalog.version}" + ) def _set_locale(self): current = self.app.base_model.locale.selected_language