diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-25 11:40:04 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-25 11:40:46 -0800 |
commit | 3c2ac30e23744e38aa84f3a673b4cc644bd76c37 (patch) | |
tree | a38b6a677c7dc70b77a29ed16731f5fffb5defa8 /python/fatcat_harvest.py | |
parent | 45464ab2a9ccc18b5440a531dc2e4fdf6508a342 (diff) | |
download | fatcat-3c2ac30e23744e38aa84f3a673b4cc644bd76c37.tar.gz fatcat-3c2ac30e23744e38aa84f3a673b4cc644bd76c37.zip |
update sentry SDK configuration
Diffstat (limited to 'python/fatcat_harvest.py')
-rwxr-xr-x | python/fatcat_harvest.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/fatcat_harvest.py b/python/fatcat_harvest.py index 4180dc16..8d86bca7 100755 --- a/python/fatcat_harvest.py +++ b/python/fatcat_harvest.py @@ -15,9 +15,6 @@ from fatcat_tools.harvest import ( PubmedFTPWorker, ) -# Yep, a global. Gets DSN from `SENTRY_DSN` environment variable -sentry_client = sentry_sdk.init() - def run_crossref(args: argparse.Namespace) -> None: worker = HarvestCrossrefWorker( @@ -145,6 +142,8 @@ def main() -> None: if not args.__dict__.get("func"): print("tell me what to do!") sys.exit(-1) + + sentry_sdk.init(environment=args.env) args.func(args) |