From 6220b7e903c907f2c27843266a35a0b157863251 Mon Sep 17 00:00:00 2001 From: martynia Date: Fri, 17 Jan 2025 10:33:22 +0100 Subject: [PATCH] fix: remove unused PilotNotFoundError exception --- diracx-core/src/diracx/core/exceptions.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/diracx-core/src/diracx/core/exceptions.py b/diracx-core/src/diracx/core/exceptions.py index 2f30a63a..7ac591e3 100644 --- a/diracx-core/src/diracx/core/exceptions.py +++ b/diracx-core/src/diracx/core/exceptions.py @@ -46,14 +46,6 @@ def __init__(self, job_id: int, detail: str | None = None): super().__init__(f"Job {job_id} not found" + (" ({detail})" if detail else "")) -class PilotNotFoundError(Exception): - def __init__(self, pilot_stamp: str, detail: str | None = None): - self.pilot_stamp: str = pilot_stamp - super().__init__( - f"Pilot (stamp) {pilot_stamp} not found" + (" ({detail})" if detail else "") - ) - - class SandboxNotFoundError(Exception): def __init__(self, pfn: str, se_name: str, detail: str | None = None): self.pfn: str = pfn