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']