Skip to content

Commit 03d1a39

Browse files
committed
bugfix: don't just ignore invalid values in ignore_errors
1 parent f0614e3 commit 03d1a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _check_should_capture(self, event):
9595
exclusions = self.options["ignore_errors"]
9696
exc_type = type(event._exc_value)
9797

98-
if any(inspect.isclass(e) and issubclass(exc_type, e) for e in exclusions):
98+
if any(issubclass(exc_type, e) for e in exclusions):
9999
raise SkipEvent()
100100

101101
if _most_recent_exception.get(None) is event._exc_value:

0 commit comments

Comments
 (0)