def handle(self, request, context):
        url = reverse('horizon:project:application_policy:index')
        try:
            protocol = context.get('protocol').lower()
            if PROTOCOL_MAP in protocol:
                context['protocol'] = PROTOCOL_MAP[protocol]
            elif protocol == "any":
                del context['protocol']
            if not context.get('port_range'):
                context['port_range'] = None
            if context.get('name'):
                context['name'] = html.escape(context['name'])
            classifier = client.policyclassifier_create(request, **context)
            messages.success(
                request, _('Policy Classifier successfully created.'))
            return classifier
        except Exception:
            exceptions.handle(
                request, _("Unable to create policy classifier."),
                redirect=url)
dataset/ETHPy150Open openstack/group-based-policy-ui/gbpui/panels/application_policy/forms.py/AddPolicyClassifierForm.handle/swapped operands of `in`