Skip to content

Commit

Permalink
ref(rules): Raise exception on keyerror (#70880)
Browse files Browse the repository at this point in the history
Follow up from
#70831 (comment) to
make this raise an exception rather than just log an error.
  • Loading branch information
ceorourke authored May 14, 2024
1 parent add00de commit 255c94c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sentry/buffer/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def callback(self, buffer_hook_event: BufferHookEvent, data: RedisBuffer) -> boo
try:
callback = self._registry[buffer_hook_event]
except KeyError:
logger.info("buffer_hook_event.missing", extra={"key_name": buffer_hook_event.value})
return False
logger.exception("buffer_hook_event.missing")

return callback(data)

Expand Down

0 comments on commit 255c94c

Please sign in to comment.