X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdak_exceptions.py;h=9404ee9e71138ceb8c18bf51547cdf98ce25c6f6;hb=644584f12c7513cc394defdbdbf2faf84c4e0206;hp=b52e0657f6285629f9b540cd72908335de1989b6;hpb=c9e12bb14c839b31d48db95406b4497bb4cdffde;p=dak.git diff --git a/daklib/dak_exceptions.py b/daklib/dak_exceptions.py index b52e0657..9404ee9e 100644 --- a/daklib/dak_exceptions.py +++ b/daklib/dak_exceptions.py @@ -29,6 +29,7 @@ class DakError(Exception): """ def __init__(self, message=""): + Exception.__init__(self) self.args = str(message) self.message = str(message) @@ -48,7 +49,8 @@ dakerrors = { "FileExistsError": """Exception raised when destination file exists.""", "SendmailFailedError": """Exception raised when Sendmail invocation failed.""", "NoFreeFilenameError": """Exception raised when no alternate filename was found.""", - "TransitionsError": """Exception raised when transitions file can't be parsed.""" + "TransitionsError": """Exception raised when transitions file can't be parsed.""", + "NoSourceFieldError": """Exception raised - we cant find the source - wtf?""" } def construct_dak_exception(name, description):