diff --git a/apps/wizard/app_pages/chart_diff/chart_diff.py b/apps/wizard/app_pages/chart_diff/chart_diff.py index 3bd827a9814..ef26c78d399 100644 --- a/apps/wizard/app_pages/chart_diff/chart_diff.py +++ b/apps/wizard/app_pages/chart_diff/chart_diff.py @@ -139,7 +139,11 @@ def slug(self) -> str: If slug of the chart miss-matches between target and source sessions, an error is displayed. """ if self.target_chart: - assert self.source_chart.slug == self.target_chart.slug, "Slug mismatch!" + # Only published charts have slugs + if self.target_chart.publishedAt is not None: + assert ( + self.source_chart.slug == self.target_chart.slug + ), f"Slug mismatch! {self.source_chart.slug} != {self.target_chart.slug}" return self.source_chart.slug or "no-slug" @property