From 107c44a2a918c3f2177c1b5a0da1611174ba00cc Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 10 Jun 2021 14:36:50 +0100 Subject: [PATCH] Inara: Fix the all() generator for ShipLocker check --- plugins/inara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inara.py b/plugins/inara.py index 7c8b3fdf..2e145a3c 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(t in entry 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']