diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-02-24 16:35:10 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-02-24 16:35:10 -0800 |
commit | 7f7846b99042897afd5916b9263320c0e2775706 (patch) | |
tree | 2898f1aeab36d62db8b7e8f7f3e61c977ae74744 /python/scripts/deliver_gwb_to_disk.py | |
parent | 2394c3349d4fd898c1d88808e06da365d6eaa767 (diff) | |
download | sandcrawler-7f7846b99042897afd5916b9263320c0e2775706.tar.gz sandcrawler-7f7846b99042897afd5916b9263320c0e2775706.zip |
switch from 'raven' to 'sentry-sdk'
Diffstat (limited to 'python/scripts/deliver_gwb_to_disk.py')
-rwxr-xr-x | python/scripts/deliver_gwb_to_disk.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/python/scripts/deliver_gwb_to_disk.py b/python/scripts/deliver_gwb_to_disk.py index fcaf51f..8eb39dd 100755 --- a/python/scripts/deliver_gwb_to_disk.py +++ b/python/scripts/deliver_gwb_to_disk.py @@ -16,14 +16,11 @@ import sys from collections import Counter from http.client import IncompleteRead -import raven +import sentry_sdk import wayback.exception from gwb.loader import CDXLoaderFactory from wayback.resourcestore import ResourceStore -# Yep, a global. Gets DSN from `SENTRY_DSN` environment variable -sentry_client = raven.Client() - class DeliverGwbDisk: def __init__(self, disk_dir, **kwargs): @@ -161,7 +158,6 @@ class DeliverGwbDisk: sys.stderr.write("{}\n".format(self.count)) -@sentry_client.capture_exceptions def main(): parser = argparse.ArgumentParser() @@ -191,6 +187,8 @@ def main(): ) args = parser.parse_args() + sentry_sdk.Client() + worker = DeliverGwbDisk(**args.__dict__) worker.run(args.manifest_file) |