def check_for_result(self, language, translation, result, name):
        if not result:
            try:
                translation = self.translations.get(language_code=language)
            except __HOLE__:
                pass
            else:  # pragma: nocover
                result = getattr(translation, name, '')
        return translation, result
dataset/ETHPy150Open bitmazk/django-libs/django_libs/models_mixins.py/TranslationModelMixin.check_for_result