Prevent bug in upgrade diff for empty new version

apparently this is quite the rare case..but can happen
This commit is contained in:
Lance Edgar 2023-05-18 19:56:55 -05:00
parent af405cfd10
commit 05bb3849a2

View file

@ -400,6 +400,10 @@ class UpgradeView(MasterView):
return projects return projects
def get_changelog_url(self, project, old_version, new_version): 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() projects = self.get_changelog_projects()
project_name = project project_name = project