From e754568b28cd2add84c56df234266ed6afe45423 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 14:31:26 +0100 Subject: [PATCH] ShipLocker: Fix the all() generator --- monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))