Try loading item as a booster if implant fails.

This commit is contained in:
Ebag333
2016-12-26 23:29:22 -08:00
parent ff60538e21
commit 7ee4d1d588

View File

@@ -406,7 +406,11 @@ class Port(object):
cargoMap[modName] = 0
cargoMap[modName] += extraAmount
elif item.category.name == "Implant":
fit.implants.append(Implant(item))
try:
fit.implants.append(Implant(item))
except ValueError:
# Passed item isn't an implant. Try loading it as a booster.
fit.boosters.append(Booster(item))
# elif item.category.name == "Subsystem":
# try:
# subsystem = Module(item)