def get_apphook(self, app_name):
        if not self.discovered:
            self.discover_apps()

        try:
            return self.apps[app_name]
        except KeyError:
            # deprecated: return apphooks registered in db with urlconf name
            # instead of apphook class name
            for app in self.apps.values():
                if app.urls in app_name:
                    return app

        raise ImproperlyConfigured('No registered apphook %r found' % app_name)
dataset/ETHPy150Open divio/django-cms/cms/apphook_pool.py/ApphookPool.get_apphook/swapped operands of `in`