Skip to content

Commit 72a75f6

Browse files
Fix TypeError by checking for None query in parse_search_query
1 parent 5c47a5b commit 72a75f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sentry/api/event_search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,8 @@ def parse_search_query(
11781178
) -> list[
11791179
SearchFilter
11801180
]: # TODO: use the `Sequence[QueryToken]` type and update the code that fails type checking.
1181+
if query is None:
1182+
return []
11811183
if config is None:
11821184
config = default_config
11831185

0 commit comments

Comments
 (0)