From 01a3f2707be77c4ec7666fa5f0078cea70135051 Mon Sep 17 00:00:00 2001 From: John Davis Date: Tue, 27 Jan 2026 11:50:36 -0500 Subject: [PATCH] Do not change existing behavior; raising error is correct --- scripts/cleanup_datasets/admin_cleanup_datasets.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/cleanup_datasets/admin_cleanup_datasets.py b/scripts/cleanup_datasets/admin_cleanup_datasets.py index 89163a7b9f3..d995cc385ca 100755 --- a/scripts/cleanup_datasets/admin_cleanup_datasets.py +++ b/scripts/cleanup_datasets/admin_cleanup_datasets.py @@ -301,9 +301,6 @@ def _get_tool_id_for_hda(app, hda_id): return tool_id hda = session.get(HistoryDatasetAssociation, hda_id) - if hda is None: - return None - return _get_tool_id_for_hda(app, hda.copied_from_history_dataset_association_id)