Commit 74cb53eb authored by Cédric Traizet's avatar Cédric Traizet

BUG: in set_attr, check if the key if progressReportManager before checking if it is a parameter

parent 9b2ab621
......@@ -739,14 +739,15 @@ class ApplicationProxy(object):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
if (name == "progressReportManager"):
super().__setattr__(name, value)
method = Application.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
key_list = [k.upper() for k in self.GetParametersKeys(True)]
if name in key_list:
self.SetParameterValue(name.lower(), value)
if (name == "progressReportManager"):
super().__setattr__(name, value)
raise AttributeError("You cannot add attributes to %s" % self)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment