From 05bb3849a2c7535a207f631f0f8d8ba3d072cbca Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 18 May 2023 19:56:55 -0500 Subject: [PATCH] Prevent bug in upgrade diff for empty new version apparently this is quite the rare case..but can happen --- tailbone/views/upgrades.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tailbone/views/upgrades.py b/tailbone/views/upgrades.py index eddd677c..f7c83eec 100644 --- a/tailbone/views/upgrades.py +++ b/tailbone/views/upgrades.py @@ -400,6 +400,10 @@ class UpgradeView(MasterView): return projects def get_changelog_url(self, project, old_version, new_version): + # cannot generate URL if new version is unknown + if not new_version: + return + projects = self.get_changelog_projects() project_name = project