def cmd_update_break_rule(self):
    self.print_rules()
    selection_query = None
    while (selection_query is None):
        logging.info('Please enter the ID of the rule to be used...')
        selection = input()
        try:
            int(selection)
        except ValueError:
            logging.warning('WARNING: Please enter a numeric value corresponding to a rule ID.')
        else:
            if self._check_rule_exists(selection):
                selection_query = bool_query('Select Rule "{}" for use?'.format(selection, default='y'))
    self._update_break_rule(selection)
def cmd_update_break_rule(self):
    self.print_rules()
    selection_query = None
    while (selection_query is None):
        logging.info('Please enter the ID of the rule to be used...')
        selection = input()
        try:
            int(selection)
        except ValueError:
            logging.warning('WARNING: Please enter a numeric value corresponding to a rule ID.')
        else:
            if self._check_rule_exists(selection):
                selection_query = bool_query('Select Rule "{}" for use?'.format(selection, default='y'))
    self._update_break_rule(selection)