We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162ea9e commit 9136c96Copy full SHA for 9136c96
src/collective/sentry/error_handler.py
@@ -51,7 +51,11 @@ def _ignore_error(event):
51
except (AttributeError, KeyError, IndexError):
52
error_log = None
53
54
- if error_log and exc_info[0].__name__ in error_log._ignored_exceptions:
+ name = False
55
+ if exc_info and exc_info[0]:
56
+ name = exc_info[0].__name__
57
+
58
+ if error_log and name and name in error_log._ignored_exceptions:
59
return True
60
61
return False
0 commit comments