diff --git a/monitor.py b/monitor.py index abc9d952..1bdcdfcd 100644 --- a/monitor.py +++ b/monitor.py @@ -853,7 +853,7 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below # written to a separate shiplocker.json file - other updates will just update that file and mention it # has changed with an empty shiplocker event in the main journal. - if not all([entry.get(t, False) for t in ('Components', 'Consumables', 'Data', 'Items')]): + if not all(entry.get(t, False) for t in ('Components', 'Consumables', 'Data', 'Items')): logger.debug('ShipLocker event is an empty one (at least missing one data type') # So attempt to load data from the most recent file instead currentdir_path = pathlib.Path(str(self.currentdir)) diff --git a/plugins/inara.py b/plugins/inara.py index ee43a592..7c8b3fdf 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -1101,7 +1101,7 @@ def journal_entry( # noqa: C901, CCR001 elif event_name == 'ShipLocker': # In ED 4.0.0.400 the event is only full sometimes, other times indicating # ShipLocker.json was written. - if not all([entry.get(t, False) for t in ('Components', 'Consumables', 'Data', 'Items')]): + if not all(entry.get(t, False) for t in ('Components', 'Consumables', 'Data', 'Items')): # So it's an empty event, core EDMC should have stuffed the data # into state['ShipLockerJSON']. entry = state['ShipLockerJSON']