fix bug issue 1690 as well

This commit is contained in:
P
2018-08-15 22:23:35 -07:00
parent 083b618b71
commit 6c12e1c5fc

View File

@@ -639,14 +639,13 @@ class Fit(object):
# Dummy it out in case the next bit fails
fit.modules.toDummy(position)
ret = None
try:
m = es_Module(item)
except ValueError:
pyfalog.warning("Invalid item: {0}", newItemID)
return False
if not module.isEmpty and m.slot != module.slot:
if m.slot != module.slot:
fit.modules.toModule(position, module)
# Fits, but we selected wrong slot type, so don't want to overwrite because we will append on failure (none)
ret = None