def _get_app_modal(app, form_name):
    if not app:
        app = 'core'
    if settings.INSTALLED_APPS in app:
        obj = __import__(app, fromlist=['modal']).modal
        try:
            obj = getattr(obj, '%sModal' % form_name.title())
        except AttributeError:
            raise Http404()
    else:
        raise Http404()
    return obj
dataset/ETHPy150Open gunnery/gunnery/gunnery/core/modal.py/_get_app_modal/swapped operands of `in`