mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 07:47:14 +03:00
monitor: Minor cleanup on 'Location'->'Docked' handling
* All my recent Location events *have* the 'Docked' flag. * If any don't, then just use a default on .get() to set it False.
This commit is contained in:
parent
0177fc4d69
commit
e3254aec31
@ -863,8 +863,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below
|
||||
|
||||
if event_type == 'location':
|
||||
logger.trace_if('journal.locations', '"Location" event')
|
||||
if entry.get('Docked'):
|
||||
self.state['IsDocked'] = True
|
||||
self.state['IsDocked'] = entry.get('Docked', False)
|
||||
|
||||
elif event_type == 'fsdjump':
|
||||
self.state['Body'] = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user