diff --git a/openpype/hosts/maya/api/menu.py b/openpype/hosts/maya/api/menu.py index 939c6f9c823..6811887e876 100644 --- a/openpype/hosts/maya/api/menu.py +++ b/openpype/hosts/maya/api/menu.py @@ -98,11 +98,9 @@ def remove_project_manager(): project_manager_action = None for action in system_menu.menu().children(): - if hasattr(action, "text"): - print(action.text()) - if action.text() == "Project Manager": - project_manager_action = action - break + if hasattr(action, "text") and action.text() == "Project Manager": + project_manager_action = action + break if project_manager_action is not None: system_menu.menu().removeAction(project_manager_action)