aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_import.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-02-25 11:40:04 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-02-25 11:40:46 -0800
commit3c2ac30e23744e38aa84f3a673b4cc644bd76c37 (patch)
treea38b6a677c7dc70b77a29ed16731f5fffb5defa8 /python/fatcat_import.py
parent45464ab2a9ccc18b5440a531dc2e4fdf6508a342 (diff)
downloadfatcat-3c2ac30e23744e38aa84f3a673b4cc644bd76c37.tar.gz
fatcat-3c2ac30e23744e38aa84f3a673b4cc644bd76c37.zip
update sentry SDK configuration
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..d9f049ae 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(environment=args.env)
args.func(args)