Skip to content

Commit

Permalink
source: new format is version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
dbungert committed Oct 15, 2024
1 parent 7ed08c2 commit 4a6c729
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions subiquity/server/controllers/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a6c729

Please sign in to comment.