Skip to content

Commit 6676193

Browse files
robertgossmartinweismann
authored andcommitted
Remove un-needed argument.
1 parent ffd8498 commit 6676193

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Examples/CrossComponentInheritance/Calculation_component/Bindings/Python/Calculation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def _checkBinaryVersion(self):
297297

298298
def checkError(self, errorCode):
299299
if errorCode != ErrorCodes.SUCCESS.value:
300-
message,_ = self.GetLastError(instance)
300+
message,_ = self.GetLastError()
301301
raise ECalculationException(errorCode, message)
302302

303303
def CreateCalculator(self):
@@ -370,7 +370,7 @@ def __del__(self):
370370

371371
def checkError(self, errorCode):
372372
if errorCode != ErrorCodes.SUCCESS.value:
373-
message,_ = self.GetLastError(instance)
373+
message,_ = self.GetLastError()
374374
raise ECalculationException(errorCode, message)
375375

376376

Examples/CrossComponentInheritance/Numbers_component/Bindings/Python/Numbers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def _checkBinaryVersion(self):
268268

269269
def checkError(self, errorCode):
270270
if errorCode != ErrorCodes.SUCCESS.value:
271-
message,_ = self.GetLastError(instance)
271+
message,_ = self.GetLastError()
272272
raise ENumbersException(errorCode, message)
273273

274274
def InvestigateVariable(self, InstanceObject):
@@ -349,7 +349,7 @@ def __del__(self):
349349

350350
def checkError(self, errorCode):
351351
if errorCode != ErrorCodes.SUCCESS.value:
352-
message,_ = self.GetLastError(instance)
352+
message,_ = self.GetLastError()
353353
raise ENumbersException(errorCode, message)
354354

355355

Examples/CrossComponentInheritance/Special_component/Bindings/Python/Special.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _checkBinaryVersion(self):
253253

254254
def checkError(self, errorCode):
255255
if errorCode != ErrorCodes.SUCCESS.value:
256-
message,_ = self.GetLastError(instance)
256+
message,_ = self.GetLastError()
257257
raise ESpecialException(errorCode, message)
258258

259259
def CreateSpecialVariableAsVariable(self, InitialValue):
@@ -323,7 +323,7 @@ def __del__(self):
323323

324324
def checkError(self, errorCode):
325325
if errorCode != ErrorCodes.SUCCESS.value:
326-
message,_ = self.GetLastError(instance)
326+
message,_ = self.GetLastError()
327327
raise ESpecialException(errorCode, message)
328328

329329

Source/buildbindingpython.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func buildDynamicPythonImplementation(componentdefinition ComponentDefinition, w
350350

351351
w.Writeln(" def checkError(self, errorCode):")
352352
w.Writeln(" if errorCode != ErrorCodes.SUCCESS.value:")
353-
w.Writeln(" message,_ = self.%s(instance)", componentdefinition.Global.ErrorMethod)
353+
w.Writeln(" message,_ = self.%s()", componentdefinition.Global.ErrorMethod)
354354
w.Writeln(" raise E%sException(errorCode, message)", NameSpace)
355355
w.Writeln(" ")
356356

@@ -768,7 +768,7 @@ func writePythonClass(component ComponentDefinition, class ComponentDefinitionCl
768768
w.Writeln(" ")
769769
w.Writeln(" def checkError(self, errorCode):")
770770
w.Writeln(" if errorCode != ErrorCodes.SUCCESS.value:")
771-
w.Writeln(" message,_ = self.%s(instance)", component.Global.ErrorMethod)
771+
w.Writeln(" message,_ = self.%s()", component.Global.ErrorMethod)
772772
w.Writeln(" raise E%sException(errorCode, message)", NameSpace)
773773
w.Writeln(" ")
774774
}

0 commit comments

Comments
 (0)