diff options
| author | Mason Reed <mason@vector35.com> | 2025-07-14 17:16:21 -0400 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-07-15 12:34:43 -0400 |
| commit | fc079893b2af308e01d2e216fe729a757c9a420a (patch) | |
| tree | 9d9c0abf46533227c35dea1a5770bec802537631 /python/plugin.py | |
| parent | fa7775aa80dcd23147743673bb35abafa82731e1 (diff) | |
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
Diffstat (limited to 'python/plugin.py')
| -rw-r--r-- | python/plugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
