diff --git a/monitor.py b/monitor.py index a2add0c4..703d23b6 100644 --- a/monitor.py +++ b/monitor.py @@ -854,7 +854,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(t in entry for t in ('Components', 'Consumables', 'Data', 'Items')): logger.trace('ShipLocker event is an empty one (missing at least one data type)') # So attempt to load data from the most recent file instead currentdir_path = pathlib.Path(str(self.currentdir))