Add fallback for safety

This commit is contained in:
DarkPhoenix
2019-03-21 23:56:44 +03:00
parent 1b7c23b1d3
commit 8380f516e8

View File

@@ -124,7 +124,7 @@ def exportEft(fit, options, callback):
if implantLines:
charSection.append('\n'.join(implantLines))
boosterLines = []
for booster in sorted(fit.boosters, key=lambda b: b.slot):
for booster in sorted(fit.boosters, key=lambda b: b.slot or 0):
boosterLines.append(booster.item.name)
if boosterLines:
charSection.append('\n'.join(boosterLines))