Skip fits for unknown ships in "Browsing EVE Fittings"
This commit is contained in:
@@ -366,6 +366,9 @@ class FittingsTreeView(wx.Panel):
|
|||||||
if (fit['fitting_id'] in sEsi.fittings_deleted):
|
if (fit['fitting_id'] in sEsi.fittings_deleted):
|
||||||
continue
|
continue
|
||||||
ship = getItem(fit['ship_type_id'])
|
ship = getItem(fit['ship_type_id'])
|
||||||
|
if ship is None:
|
||||||
|
pyfalog.debug('Cannot find ship type id: {}'.format(fit['ship_type_id']))
|
||||||
|
continue
|
||||||
if ship.name not in dict:
|
if ship.name not in dict:
|
||||||
dict[ship.name] = []
|
dict[ship.name] = []
|
||||||
dict[ship.name].append(fit)
|
dict[ship.name].append(fit)
|
||||||
|
|||||||
Reference in New Issue
Block a user