From b3e5763cfc6110d6b4896f3af050092112dd2794 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Fri, 26 Jun 2020 23:30:15 -0400 Subject: [PATCH] Fix for #2209 - Flip the None check to happen first instead of second, otherwise if Notes is None then the first check will fail due to trying to len(None) --- service/port/esi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/port/esi.py b/service/port/esi.py index 061ad514c..905dc75f1 100644 --- a/service/port/esi.py +++ b/service/port/esi.py @@ -72,7 +72,7 @@ def exportESI(ofit, exportCharges, callback): # 2017/03/29 NOTE: "<" or "<" is Ignored # fit['description'] = "" % ofit.ID - fit['description'] = ofit.notes[:397] + '...' if len(ofit.notes) > 400 else ofit.notes if ofit.notes is not None else "" + fit['description'] = "" if ofit.notes is None else ofit.notes[:397] + '...' if len(ofit.notes) > 400 else ofit.notes fit['items'] = [] slotNum = {}