From 84500b775a37cce6f71e834e1ca07a400c508037 Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Tue, 10 Aug 2021 02:52:39 +0300 Subject: [PATCH] More paranoia about is journal_entry_cqc callable Co-authored-by: A_D --- plug.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug.py b/plug.py index ec31ad54..f2a9b861 100644 --- a/plug.py +++ b/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))