Skip to content

Commit

Permalink
Moved KerchunkDriverFatalError to here
Browse files Browse the repository at this point in the history
  • Loading branch information
dwest77a committed Feb 15, 2024
1 parent 26657fa commit 35e2f4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pipeline/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 35e2f4e

Please sign in to comment.