mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Search: Log event for InvalidQuery
Log a simple event when an InvalidQuery is handled on the search page.
This commit is contained in:
@@ -986,6 +986,8 @@ class FrontController(RedditController):
|
||||
reverse=reverse,
|
||||
count=count)
|
||||
except InvalidQuery:
|
||||
g.stats.simple_event('cloudsearch.error.invalidquery')
|
||||
|
||||
# Clean the search of characters that might be causing the
|
||||
# InvalidQuery exception. If the cleaned search boils down
|
||||
# to an empty string, the search code is expected to bail
|
||||
|
||||
Reference in New Issue
Block a user