aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_import.py')
-rwxr-xr-xpython/fatcat_import.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py
index 5c480fc5..f502d4ed 100755
--- a/python/fatcat_import.py
+++ b/python/fatcat_import.py
@@ -44,9 +44,6 @@ from fatcat_tools.importers import (
SqlitePusher,
)
-# Yep, a global. Gets DSN from `SENTRY_DSN` environment variable
-sentry_client = sentry_sdk.init()
-
def run_crossref(args: argparse.Namespace) -> None:
fci = CrossrefImporter(
@@ -1022,6 +1019,7 @@ def main() -> None:
# token is an optional kwarg (can be empty string, None, etc)
token=os.environ.get(args.auth_var),
)
+ sentry_sdk.init()
args.func(args)