We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7775a commit fc07989Copy full SHA for fc07989
python/plugin.py
@@ -914,6 +914,8 @@ def is_valid(self, context: PluginCommandContext):
914
context.instruction.instr_index
915
)
916
elif self._command.type == PluginCommandType.ProjectPluginCommand:
917
+ if context.project is None:
918
+ return False
919
if not self._command.projectIsValid:
920
return True
921
return self._command.projectIsValid(self._command.context, context.project.handle)
0 commit comments