Skip to content

Commit 94b82fb

Browse files
committed
fix test
1 parent 26b3f11 commit 94b82fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry/search/events/filter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ def _semver_build_filter_converter(
429429
organization_id: int = params["organization_id"]
430430
project_ids = params.get("project_id")
431431
raw_build = search_filter.value.raw_value
432-
assert isinstance(raw_build, str)
432+
if not isinstance(raw_build, str):
433+
raise InvalidSearchQuery("Invalid value for release.build condition.")
433434
build: str = raw_build
434435

435436
operator, negated = handle_operator_negation(search_filter.operator)

0 commit comments

Comments
 (0)