From 8380f516e829e3f3d337078fedb1c29581148e14 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Thu, 21 Mar 2019 23:56:44 +0300 Subject: [PATCH] Add fallback for safety --- service/port/eft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/port/eft.py b/service/port/eft.py index 9206cba32..b6c57967f 100644 --- a/service/port/eft.py +++ b/service/port/eft.py @@ -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))