diff --git a/lib/tool_shed/webapp/controllers/repository.py b/lib/tool_shed/webapp/controllers/repository.py index 110838cbabae..baee2f6123ba 100644 --- a/lib/tool_shed/webapp/controllers/repository.py +++ b/lib/tool_shed/webapp/controllers/repository.py @@ -2659,7 +2659,7 @@ def validate_changeset_revision(self, trans, changeset_revision, repository_id): def get_first_repository_metadata(session): stmt = select(RepositoryMetadata).limit(1) - return session.select(stmt).first() + return session.scalars(stmt).first() def get_current_repositories(session):