1
0
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:
norohind 2021-08-10 02:52:39 +03:00 committed by GitHub
parent a00a677746
commit 84500b775a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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