From d12186eae8a6a4325effba910f37ae5ed162f2ce Mon Sep 17 00:00:00 2001 From: Sarah Gibson Date: Fri, 20 Dec 2024 11:11:43 +0000 Subject: [PATCH] Use more appropriate Error to catch when resetting matrices --- .github/workflows/deploy-hubs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-hubs.yaml b/.github/workflows/deploy-hubs.yaml index a94c4d4d5..76908ebff 100644 --- a/.github/workflows/deploy-hubs.yaml +++ b/.github/workflows/deploy-hubs.yaml @@ -392,7 +392,7 @@ jobs: try: staging_jobs = json.loads(r"""${{ needs.filter-failed-support.outputs.staging-jobs }}""") prod_jobs = json.loads(r"""${{ needs.filter-failed-support.outputs.prod-jobs }}""") - except KeyError: + except json.decoder.JSONDecodeError: staging_jobs = json.loads(r"""${{ needs.generate-jobs.outputs.staging-jobs }}""") prod_jobs = json.loads(r"""${{ needs.generate-jobs.outputs.prod-jobs }}""")