From eadf33033f26095e1290a19891c331580b489afa Mon Sep 17 00:00:00 2001 From: "brian m. carlson" Date: Thu, 11 Dec 2014 23:38:19 +0000 Subject: [PATCH] Add missing self argument to exception constructors. Signed-off-by: brian m. carlson --- lib/newfol/exception.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/newfol/exception.py b/lib/newfol/exception.py index 3311076..7e99486 100644 --- a/lib/newfol/exception.py +++ b/lib/newfol/exception.py @@ -15,7 +15,7 @@ class LocaleError(NewfolError): class SchemaError(NewfolError): - def __init__(msg): + def __init__(self, msg): super().__init__("Schema file %s" % msg) @@ -28,7 +28,7 @@ class FilemanipError(Exception): class CorruptFileError(FilemanipError): - def __init__(type, msg): + def __init__(self, type, msg): super().__init__("%s file is corrupt (%s)" % (type, msg))