aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_harvest.py
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-12-14 00:44:09 +0100
committerMartin Czygan <martin.czygan@gmail.com>2021-12-14 00:56:59 +0100
commita49df4d8f6c08ecd7a5b97a8a538b4a6f419e015 (patch)
treefa2e6d7f3ab6e7e7912e838c5da2d0659c974d5b /python/fatcat_harvest.py
parent07b9dfe28b4732f0ca52dc4fd571ea238d953279 (diff)
downloadfatcat-a49df4d8f6c08ecd7a5b97a8a538b4a6f419e015.tar.gz
fatcat-a49df4d8f6c08ecd7a5b97a8a538b4a6f419e015.zip
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
Diffstat (limited to 'python/fatcat_harvest.py')
-rwxr-xr-xpython/fatcat_harvest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_harvest.py b/python/fatcat_harvest.py
index be3cb888..4180dc16 100755
--- a/python/fatcat_harvest.py
+++ b/python/fatcat_harvest.py
@@ -4,7 +4,7 @@ import argparse
import datetime
import sys
-import raven
+import sentry_sdk
from fatcat_tools.harvest import (
HarvestArxivWorker,
@@ -16,7 +16,7 @@ from fatcat_tools.harvest 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: