From 8711543bb8beb713ef588137449d139426a4d358 Mon Sep 17 00:00:00 2001 From: John Davis Date: Thu, 3 Jul 2025 16:29:55 -0400 Subject: [PATCH] Do not set attribute on a namedtuple --- lib/galaxy/objectstore/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/objectstore/__init__.py b/lib/galaxy/objectstore/__init__.py index 2a266ea3a47..0a7b185fe80 100644 --- a/lib/galaxy/objectstore/__init__.py +++ b/lib/galaxy/objectstore/__init__.py @@ -1350,7 +1350,11 @@ class DistributedObjectStore(NestedObjectStore): log.warning( f"{obj.__class__.__name__} object with ID {obj.id} found in backend object store with ID {id}" ) - obj.object_store_id = id + try: + obj.object_store_id = id + except AttributeError: + # obj is likely a namedtuple (/scripts/cleanup_datasets/pgcleanup.py::RemovesDatasets) + log.info("Unable to set object_store_id on a readonly dataset object: %s", obj) return id return None