Skip to content

Commit 777ec1e

Browse files
committed
Merge branch 'release_24.1' into release_24.2
2 parents cb97a19 + 7e216fd commit 777ec1e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/galaxy/objectstore/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,11 @@ def __get_store_id_for(self, obj, **kwargs):
16121612
log.warning(
16131613
f"{obj.__class__.__name__} object with ID {obj.id} found in backend object store with ID {id}"
16141614
)
1615-
obj.object_store_id = id
1615+
try:
1616+
obj.object_store_id = id
1617+
except AttributeError:
1618+
# obj is likely a namedtuple (/scripts/cleanup_datasets/pgcleanup.py::RemovesDatasets)
1619+
log.info("Unable to set object_store_id on a readonly dataset object: %s", obj)
16161620
return id
16171621
return None
16181622

0 commit comments

Comments
 (0)