Skip to content

Commit

Permalink
fix: Remove unreachable exception handlers
Browse files Browse the repository at this point in the history
These were added in testing the batching failures, but I suspect they're unnecessary since I can't find any place that would trigger them.
  • Loading branch information
bmtcril committed Apr 1, 2024
1 parent bc54562 commit 5a555f1
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ def __call__(self, events):
else:
returned_events.append(transformed_event)

# If there's not a transformer implemented for this event
# just skip it
except NoTransformerImplemented:
pass
# If the backend isn't enabled at all, early out
except NoBackendEnabled:
break
Expand All @@ -69,10 +65,6 @@ def transform_event(self, event):

try:
transformed_event = self.get_transformed_event(event)

except NoBackendEnabled:
return None

except NoTransformerImplemented:
logger.error('Could not get transformer for %s event.', event_name)
return None
Expand Down

0 comments on commit 5a555f1

Please sign in to comment.