mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-02 08:31:16 +03:00
EDDN: Restore 4.2.4 is_horizons() check in full
This commit is contained in:
parent
63be402cb4
commit
9a8daf665e
@ -853,10 +853,14 @@ def is_horizons(economies: MAP_STR_ANY, modules: MAP_STR_ANY, ships: MAP_STR_ANY
|
|||||||
|
|
||||||
if isinstance(ships, dict):
|
if isinstance(ships, dict):
|
||||||
if ships.get('shipyard_list') is not None:
|
if ships.get('shipyard_list') is not None:
|
||||||
ship_horizons = any(ship.get('sku') == HORIZ_SKU for ship in ships['shipyard_list'].values())
|
if isinstance(ships.get('shipyard_list'), dict):
|
||||||
|
ship_horizons = any(ship.get('sku') == HORIZ_SKU for ship in ships['shipyard_list'].values())
|
||||||
|
|
||||||
|
else:
|
||||||
|
logger.debug('ships["shipyard_list"] is not dict - FC or Damaged Station?')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.debug('No ships["shipyard_list"] - Damaged station or FC ?')
|
logger.debug('ships["shipyard_list"] is None - FC or Damaged Station?')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.error(f'ships type is {type(ships)}')
|
logger.error(f'ships type is {type(ships)}')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user