From e8e1b4a1605432f32c446bbe4f1b965c294b3566 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Fri, 12 Jul 2024 18:20:04 +0100 Subject: [PATCH] Move try/except one level down --- lib/galaxy_test/base/populators.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/galaxy_test/base/populators.py b/lib/galaxy_test/base/populators.py index 1e284135937b..fcf59fd12d1f 100644 --- a/lib/galaxy_test/base/populators.py +++ b/lib/galaxy_test/base/populators.py @@ -2532,13 +2532,13 @@ def run_conformance_test(self, version: str, doc: str): raise Exception("Expected run to fail but it didn't.") expected_outputs = test["output"] - try: - for key, value in expected_outputs.items(): + for key, value in expected_outputs.items(): + try: actual_output = run.get_output_as_object(key) cwltest.compare.compare(value, actual_output) - except Exception: - self.dataset_populator._summarize_history(run.history_id) - raise + except Exception: + self.dataset_populator._summarize_history(run.history_id) + raise class LibraryPopulator: