diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index bdb543e146bb..e4bd56ace205 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -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):