Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sentry: Ignore SystemExit and similar exceptions.
There are three exceptions in Python3 which are descended from BaseException, but not Exception: GeneratorExit, KeyboardInterrupt, and SystemExit. None of these are suitable to be sent to Sentry. For example, SystemExit is raised by `sys.exit`; in that sense, it is never "uncaught" because we chose to cause it explicitly. Use the suggested form[1] for ignoring specific classes of exceptions. [1] getsentry/sentry-python#149 (comment)
- Loading branch information