Merge pull request #1332 from ynput/bugfix/no-context-for-global-host-data-prehook

Handles missing folder/task data safely
This commit is contained in:
Jakub Trllo 2025-06-23 09:24:16 +02:00 committed by GitHub
commit 0d40d522d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,8 +32,8 @@ class GlobalHostDataHook(PreLaunchHook):
"app": app,
"project_entity": self.data["project_entity"],
"folder_entity": self.data["folder_entity"],
"task_entity": self.data["task_entity"],
"folder_entity": self.data.get("folder_entity"),
"task_entity": self.data.get("task_entity"),
"anatomy": self.data["anatomy"],