@property
    def apps(self):

        INSTALLED_APPS = []
        try:
            import whoosh
        except Exception as e:
            try:
                import haystack
            except __HOLE__ as e:
                warnings.warn(
                    'Haystack search engine is disabled because: {}'.format(e))
            except ImproperlyConfigured as e:
                warnings.warn(
                    'Haystack search engine is disabled because: {}'.format(e))
            else:
                INSTALLED_APPS += ['haystack']
        else:
            INSTALLED_APPS += ['whoosh', 'haystack']

        return INSTALLED_APPS + ['leonardo.module.search']
dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/module/search/__init__.py/Default.apps