Do not kill the entire XML import if one fitting fails (#1231)
This commit is contained in:
@@ -1030,9 +1030,15 @@ class Port(object):
|
||||
fittings = doc.getElementsByTagName("fittings").item(0)
|
||||
fittings = fittings.getElementsByTagName("fitting")
|
||||
fit_list = []
|
||||
failed = 0
|
||||
|
||||
for fitting in fittings:
|
||||
fitobj = _resolve_ship(fitting, sMkt, b_localized)
|
||||
try:
|
||||
fitobj = _resolve_ship(fitting, sMkt, b_localized)
|
||||
except:
|
||||
failed += 1
|
||||
continue
|
||||
|
||||
# -- 170327 Ignored description --
|
||||
# read description from exported xml. (EVE client, EFT)
|
||||
description = fitting.getElementsByTagName("description").item(0).getAttribute("value")
|
||||
|
||||
Reference in New Issue
Block a user