mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Raise serializable exception when loading invalid version for a workflow
Fixes https://github.com/galaxyproject/galaxy/issues/18438
This commit is contained in:
@@ -7666,7 +7666,7 @@ class StoredWorkflow(Base, HasTags, Dictifiable, RepresentById, UsesCreateAndUpd
|
||||
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):
|
||||
|
||||
Reference in New Issue
Block a user