Skip to content
Snippets Groups Projects

Do not report errors to Sentry in Django shells

Merged Erwan Rouchet requested to merge sentry-shell into master

Closes #759 (closed)

There is no easy way to tell Sentry to ignore exceptions whose stack trace contains django.core.management.commands.shell or something that comes from its REPL. I had made multiple tests earlier with before_send hooks and analyzing the traceback, but it's a mess. The only way I found to not enable Sentry on Django shells is to look for shell or shell_plus in the command line, and just not initialize Sentry at all when it's there.

Edited by Erwan Rouchet

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading