diff --git a/tools/tryselect/mach_commands.py b/tools/tryselect/mach_commands.py index af433f22a48b..5418f897d792 100644 --- a/tools/tryselect/mach_commands.py +++ b/tools/tryselect/mach_commands.py @@ -113,6 +113,9 @@ class TrySelect(MachCommandBase): user_presets.edit() sys.exit() + if 'preset' not in self.parser.common_groups: + return kwargs + default = self.parser.get_default if save: selector = self.subcommand or self._mach_context.settings['try']['default'] @@ -175,8 +178,7 @@ class TrySelect(MachCommandBase): return kwargs def run(self, **kwargs): - if 'preset' in self.parser.common_groups: - kwargs = self.handle_presets(**kwargs) + kwargs = self.handle_presets(**kwargs) if self.parser.task_configs: kwargs = self.handle_try_config(**kwargs)