Follow up to https://github.com/getsentry/sentry-python/pull/4162
Follow up to #4162