Add missing self argument to exception constructors.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
This commit is contained in:
parent
5a1ffec85d
commit
eadf33033f
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue