From 6a296d4920592589d0fd01acdb13fc530d26093c Mon Sep 17 00:00:00 2001 From: A_D Date: Sat, 3 Jul 2021 15:48:25 +0200 Subject: [PATCH] fixed inara per-event killswitch doing nothing --- plugins/inara.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/inara.py b/plugins/inara.py index 768aab95..ea46f9ce 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -341,6 +341,8 @@ def journal_entry( # noqa: C901, CCR001 elif (ks := killswitch.get_disabled(f'plugins.inara.journal.event.{entry["event"]}')).disabled: logger.warning(f'event {entry["event"]} processing has been disabled via killswitch: {ks.reason}') + # this can and WILL break state, but if we're concerned about it sending bad data, we'd disable globally anyway + return '' this.on_foot = state['OnFoot'] event_name: str = entry['event']