fix: missing key when verifying adhoc filters in merge_extra_filters (#12620)

Co-authored-by: Bryan Keller <bkeller@netflix.com>
This commit is contained in:
bryanck
2021-01-20 14:22:05 -08:00
committed by GitHub
parent b592165f68
commit e7def7e0e2

View File

@@ -1025,8 +1025,8 @@ def merge_extra_filters( # pylint: disable=too-many-branches
for existing in adhoc_filters:
if (
existing["expressionType"] == "SIMPLE"
and existing["comparator"] is not None
and existing["subject"] is not None
and existing.get("comparator") is not None
and existing.get("subject") is not None
):
existing_filters[get_filter_key(existing)] = existing["comparator"]