diff options
Diffstat (limited to 'python/fatcat_import.py')
-rwxr-xr-x | python/fatcat_import.py | 4 |
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) |