diff --git a/Modules/Wrappers/SWIG/src/otbApplication.i b/Modules/Wrappers/SWIG/src/otbApplication.i index e8837af9e9090931ce5b760b28f6b097a3fd9565..943339c2ea1c0a8876b7e77a508b2a698092a267 100644 --- a/Modules/Wrappers/SWIG/src/otbApplication.i +++ b/Modules/Wrappers/SWIG/src/otbApplication.i @@ -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)