Change msg param to an optional param for InterpolationError and NameError
These are parent classes for other error classes which all pass the
msg parameter as an optional parameter.
diff --git a/reclass/errors.py b/reclass/errors.py
index 24bdfaa..df35ef8 100644
--- a/reclass/errors.py
+++ b/reclass/errors.py
@@ -117,7 +117,7 @@
class InterpolationError(ReclassException):
- def __init__(self, msg, rc=posix.EX_DATAERR, nodename='', uri=None, context=None, tbFlag=True):
+ def __init__(self, msg=None, rc=posix.EX_DATAERR, nodename='', uri=None, context=None, tbFlag=True):
super(InterpolationError, self).__init__(rc=rc, msg=msg, tbFlag=tbFlag)
self.nodename = nodename
self.uri = uri
@@ -330,7 +330,7 @@
class NameError(ReclassException):
- def __init__(self, msg, rc=posix.EX_DATAERR):
+ def __init__(self, msg=None, rc=posix.EX_DATAERR):
super(NameError, self).__init__(rc=rc, msg=msg)