From 030713f5b991451a3616d15a71ad9345e5fdf4d7 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 10 Aug 2021 13:55:10 +0300 Subject: [PATCH] plug.py: rename journal_entry to cqc_callback in notify_journal_entry_cqc --- plug.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plug.py b/plug.py index 333d098c..334ca00d 100644 --- a/plug.py +++ b/plug.py @@ -324,11 +324,11 @@ def notify_journal_entry_cqc(cmdr, is_beta, entry, state): error = None for plugin in PLUGINS: - journal_entry = plugin._get_func('journal_entry_cqc') - if journal_entry is not None and callable(journal_entry): + cqc_callback = plugin._get_func('journal_entry_cqc') + if cqc_callback is not None and callable(cqc_callback): try: # Pass a copy of the journal entry in case the callee modifies it - newerror = journal_entry(cmdr, is_beta, dict(entry), dict(state)) + newerror = cqc_callback(cmdr, is_beta, dict(entry), dict(state)) error = error or newerror except Exception: