Make sure position is returned as None in case the module cannot be found on passed fit
This commit is contained in:
@@ -50,7 +50,6 @@ class CalcReplaceLocalModuleCommand(wx.Command):
|
||||
pyfalog.warning('Invalid charge')
|
||||
self.Undo()
|
||||
return False
|
||||
newMod.owner = fit
|
||||
try:
|
||||
fit.modules.replace(self.position, newMod)
|
||||
except HandledListActionError:
|
||||
|
||||
Reference in New Issue
Block a user