Skip to content

Commit

Permalink
Raise serializable exception when loading invalid version for a workflow
Browse files Browse the repository at this point in the history
Fixes #18438
  • Loading branch information
mvdbeek committed Jun 27, 2024
1 parent 7d57020 commit 9830488
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7666,7 +7666,7 @@ def get_internal_version(self, version):
if version is None:
return self.latest_workflow
if len(self.workflows) <= version:
raise Exception("Version does not exist")
raise galaxy.exceptions.RequestParameterInvalidException("Version does not exist")
return list(reversed(self.workflows))[version]

def version_of(self, workflow):
Expand Down

0 comments on commit 9830488

Please sign in to comment.