mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 08:17:13 +03:00
More paranoia about is journal_entry_cqc callable
Co-authored-by: A_D <A-UNDERSCORE-D@users.noreply.github.com>
This commit is contained in:
parent
a00a677746
commit
84500b775a
2
plug.py
2
plug.py
@ -325,7 +325,7 @@ 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:
|
||||
if journal_entry is not None and callable(journal_entry):
|
||||
try:
|
||||
# Pass a copy of the journal entry in case the callee modifies it
|
||||
newerror = journal_entry(cmdr, is_beta, dict(entry), dict(state))
|
||||
|
Loading…
x
Reference in New Issue
Block a user