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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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"]