From fc079893b2af308e01d2e216fe729a757c9a420a Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 14 Jul 2025 17:16:21 -0400 Subject: Fix project handle not being checked for when listing valid plugins This caused project commands to throw when there valid callback was called outside the context of a project --- python/plugin.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/plugin.py b/python/plugin.py index 26fde9cb..13a41c48 100644 --- a/python/plugin.py +++ b/python/plugin.py @@ -914,6 +914,8 @@ class PluginCommand(metaclass=_PluginCommandMetaClass): context.instruction.instr_index ) elif self._command.type == PluginCommandType.ProjectPluginCommand: + if context.project is None: + return False if not self._command.projectIsValid: return True return self._command.projectIsValid(self._command.context, context.project.handle) -- cgit v1.3.1