From a49df4d8f6c08ecd7a5b97a8a538b4a6f419e015 Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 14 Dec 2021 00:44:09 +0100 Subject: move from raven to sentry_sdk related docs: * https://docs.sentry.io/platforms/python/guides/flask/migration/ * https://docs.sentry.io/platforms/python/guides/asgi/configuration/integrations/flask/ > `fetch_git_sha` is gone, see: https://forum.sentry.io/t/fetch-git-sha-equivalent-in-the-unified-python-sdk/5521 --- python/fatcat_cleanup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_cleanup.py') diff --git a/python/fatcat_cleanup.py b/python/fatcat_cleanup.py index b8d0ee4d..b5e50425 100755 --- a/python/fatcat_cleanup.py +++ b/python/fatcat_cleanup.py @@ -4,13 +4,13 @@ import argparse import os import sys -import raven +import sentry_sdk from fatcat_tools import authenticated_api from fatcat_tools.cleanups import FileCleaner, JsonLinePusher # Yep, a global. Gets DSN from `SENTRY_DSN` environment variable -sentry_client = raven.Client() +sentry_client = sentry_sdk.init() def run_files(args: argparse.Namespace) -> None: -- cgit v1.2.3