From 35e2f4e0620328632ea9ad17fa841bce4d1b9825 Mon Sep 17 00:00:00 2001 From: dwest77 Date: Thu, 15 Feb 2024 16:34:16 +0000 Subject: [PATCH] Moved KerchunkDriverFatalError to here --- pipeline/errors.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pipeline/errors.py b/pipeline/errors.py index 4912428..2b315a3 100644 --- a/pipeline/errors.py +++ b/pipeline/errors.py @@ -24,6 +24,16 @@ def __init__(self, proj_code, groupdir): def save(self): upload_err(self.proj_code, self.groupdir, self.get_str()) +class KerchunkDriverFatalError(KerchunkException): + + def __init__(self,verbose=0, proj_code=None, groupdir=None): + self.message = "All drivers failed when performing conversion" + super().__init__(proj_code, groupdir) + if verbose < 1: + self.__class__.__module__ = 'builtins' + def get_str(self): + return 'MissingVariableError' + class BlacklistProjectCode(KerchunkException): def __init__(self, verbose=0, proj_code=None, groupdir=None): """The project code you are trying to run for is on the list of project codes to ignore."""