1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-19 18:37:39 +03:00

fixed inara per-event killswitch doing nothing

This commit is contained in:
A_D 2021-07-03 15:48:25 +02:00
parent 1e691d306e
commit 6a296d4920
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

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