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_import.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_import.py') diff --git a/python/fatcat_import.py b/python/fatcat_import.py index 33679868..5c480fc5 100755 --- a/python/fatcat_import.py +++ b/python/fatcat_import.py @@ -4,7 +4,7 @@ import argparse import os import sys -import raven +import sentry_sdk from fatcat_tools import authenticated_api from fatcat_tools.importers import ( @@ -45,7 +45,7 @@ from fatcat_tools.importers import ( ) # Yep, a global. Gets DSN from `SENTRY_DSN` environment variable -sentry_client = raven.Client() +sentry_client = sentry_sdk.init() def run_crossref(args: argparse.Namespace) -> None: -- cgit v1.2.3