Skip to content
Snippets Groups Projects
Commit 74cb53eb authored by Cédric Traizet's avatar Cédric Traizet
Browse files

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

parent 9b2ab621
No related branches found
No related tags found
3 merge requests!648Ci rcjob,!621Release 7.0 (master),!569Better cleaning of logger objects in the Python Swig wrapper
......@@ -739,14 +739,15 @@ class ApplicationProxy(object):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
if (name == "progressReportManager"):
super().__setattr__(name, value)
return
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)
else:
raise AttributeError("You cannot add attributes to %s" % self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment