mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
eddn: Be paranoid about Status.json BodyName value
This commit is contained in:
parent
67019e91b2
commit
f144c199ae
@ -1596,10 +1596,12 @@ def dashboard_entry(cmdr: str, is_beta: bool, entry: Dict[str, Any]) -> None:
|
|||||||
:param is_beta: Whether non-live game version was detected.
|
:param is_beta: Whether non-live game version was detected.
|
||||||
:param entry: The latest Status.json data.
|
:param entry: The latest Status.json data.
|
||||||
"""
|
"""
|
||||||
|
this.status_body_name = None
|
||||||
if 'BodyName' in entry:
|
if 'BodyName' in entry:
|
||||||
this.status_body_name = entry['BodyName']
|
if not isinstance(entry['BodyName'], str):
|
||||||
|
logger.warning(f'BodyName was present but not a string! "{entry["BodyName"]}"')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
this.status_body_name = None
|
this.status_body_name = entry['BodyName']
|
||||||
|
|
||||||
tracking_ui_update()
|
tracking_ui_update()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user