[FIX] sentry: Fix KeyError 'with_locals' on DEFAULT_OPTIONS
See original migration for reference: https://github.com/getsentry/sentry-python/commit/888c0e19e6c9b489e63b8299e41705ddf0abb080
@hnavarro-kernet could you rebase?
Should be rebased now @MiquelRForgeFlow
Pre-commit successful, waiting for tests/test now.
All 4 PRs depend on each other I guess:
- https://github.com/OCA/server-tools/pull/3103
- https://github.com/OCA/server-tools/pull/3104
- https://github.com/OCA/server-tools/pull/3105
- https://github.com/OCA/server-tools/pull/3106
So maybe merge them into one?
Maybe backport from this one that should have fixed all the issues?
- https://github.com/OCA/server-tools/pull/3174
If a maintainer with approval rights want to tell me what to do I'd be happy to, if not, this has been on prod since the PR was opened so I'm not going to fight the tests.