Commit 8711543b authored by John Davis's avatar John Davis
Browse files

Do not set attribute on a namedtuple

parent c9679269
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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}"
                    )
                    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