mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-18 09:57:40 +03:00
plug.py: rename journal_entry to cqc_callback in notify_journal_entry_cqc
This commit is contained in:
parent
6e2f49a63c
commit
030713f5b9
6
plug.py
6
plug.py
@ -324,11 +324,11 @@ def notify_journal_entry_cqc(cmdr, is_beta, entry, state):
|
|||||||
|
|
||||||
error = None
|
error = None
|
||||||
for plugin in PLUGINS:
|
for plugin in PLUGINS:
|
||||||
journal_entry = plugin._get_func('journal_entry_cqc')
|
cqc_callback = plugin._get_func('journal_entry_cqc')
|
||||||
if journal_entry is not None and callable(journal_entry):
|
if cqc_callback is not None and callable(cqc_callback):
|
||||||
try:
|
try:
|
||||||
# Pass a copy of the journal entry in case the callee modifies it
|
# 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
|
error = error or newerror
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user