1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

CQC game mode LoadGame has fewer fields, no Ship

This commit is contained in:
Athanasius 2021-04-12 08:45:10 +01:00
parent dc7f4bdd1c
commit 79729d683e

View File

@ -520,7 +520,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
'Statistics': {}, 'Statistics': {},
'Role': None, 'Role': None,
}) })
if self._RE_SHIP_ONFOOT.search(entry['Ship']): if entry.get('Ship') is not None and self._RE_SHIP_ONFOOT.search(entry['Ship']):
self.state['OnFoot'] = True self.state['OnFoot'] = True
elif event_type == 'NewCommander': elif event_type == 'NewCommander':