Merge pull request #25854 from akhilnarang/sentry-fix-exception-check
fix(sentry): correctly skip `frappe.ValidationError` and its children
This commit is contained in:
commit
2d71c2cbcd
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ def capture_exception(message: str | None = None) -> None:
|
|||
exc_info = sys.exc_info()
|
||||
if any(exc_info):
|
||||
# Don't report validation errors
|
||||
if isinstance(exc_info[0], frappe.ValidationError):
|
||||
if isinstance(exc_info[1], frappe.ValidationError):
|
||||
return
|
||||
|
||||
event, hint = event_from_exception(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue