diff --git a/python/app/dialog.py b/python/app/dialog.py index ff3cc1f..740d6de 100644 --- a/python/app/dialog.py +++ b/python/app/dialog.py @@ -1266,7 +1266,9 @@ def _sort_menu_setup(self, task_tab_data): # Build the sort menu to display entity fields self._entity_type = task_tab_data["entity_type"] - project_id = self._app.context.project["id"] + project_id = None + if self._app.context.project: + project_id = self._app.context.project["id"] self._entity_field_menu = shotgun_menus.EntityFieldMenu( self._entity_type,