Skip to content

Commit d2decf3

Browse files
authored
fix: fixes KeyError when running with stale topic dlq (#82512)
1 parent 5bd1b24 commit d2decf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/consumers/dlq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def submit(self, message: Message[KafkaPayload]) -> None:
113113
# If we get a valid message for a partition later, don't emit a filtered message for it
114114
if self.offsets_to_forward:
115115
for partition in message.committable:
116-
self.offsets_to_forward.pop(partition)
116+
self.offsets_to_forward.pop(partition, None)
117117

118118
self.next_step.submit(message)
119119

0 commit comments

Comments
 (0)