'Return an override to the hard coded score for an issue being added. This could either
be a general override score for this check method or one that is specific to a particular
field in the account.
:param score: the hard coded score which will be returned back if there is
no applicable override
:param account: The account name, used to look up the value of any pattern
based overrides
:return:'

def _check_for_override_score(self, score, account):

    for override_score in self.override_scores:
        if (override_score.method == (((self.current_method_name + '    (') + self.__class__.__name__) + ')')):
            account = get_account_by_name(account)
            for account_pattern_score in override_score.account_pattern_scores:
                if getattr(account, account_pattern_score.account_field, None):
                    account_pattern_value = getattr(account, account_pattern_score.account_field)
                else:
                    account_pattern_value = account.getCustom(account_pattern_score.account_field)
                if (account_pattern_value is not None):
                    if (account_pattern_value == account_pattern_score.account_pattern):
                        app.logger.debug('Overriding    score    based    on    config    {}:{}    {}/{}'.format(self.index, (((self.current_method_name + '(') + self.__class__.__name__) + ')'), score, account_pattern_score.score))
                        score = account_pattern_score.score
                        break
            else:
                app.logger.debug('Overriding    score    based    on    config    {}:{}    {}/{}'.format(self.index, (((self.current_method_name + '(') + self.__class__.__name__) + ')'), score, override_score.score))
                score = override_score.score
    return score
