1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

plug.py: rename journal_entry to cqc_callback in notify_journal_entry_cqc

This commit is contained in:
norohind 2021-08-10 13:55:10 +03:00
parent 6e2f49a63c
commit 030713f5b9
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -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: