Skip to content

Commit

Permalink
Check for history attribute before mutability check in DatasetsService
Browse files Browse the repository at this point in the history
LDDAs don't have a history attribute.
  • Loading branch information
davelopez committed Jan 31, 2025
1 parent 4e26e82 commit ae82fa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/webapps/galaxy/services/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,8 @@ def delete_batch(
try:
manager = self.dataset_manager_by_type[dataset.src]
dataset_instance = manager.get_owned(dataset.id, trans.user)
manager.error_unless_mutable(dataset_instance.history)
if hasattr(dataset_instance, "history"):
manager.error_unless_mutable(dataset_instance.history)
if dataset.src == DatasetSourceType.hda:
self.hda_manager.error_if_uploading(dataset_instance)
if payload.purge:
Expand Down

0 comments on commit ae82fa4

Please sign in to comment.