Make sure position is returned as None in case the module cannot be found on passed fit

This commit is contained in:
DarkPhoenix
2019-04-17 22:37:44 +03:00
parent f4f92b0821
commit 4c04fd93ae
2 changed files with 6 additions and 3 deletions

View File

@@ -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: