Skip to content
Snippets Groups Projects
Commit c58694fa authored by Benoit Chauvet's avatar Benoit Chauvet
Browse files

add missing sentry captures

parent 4fc65233
No related branches found
Tags debian/upstream/0.3.0
No related merge requests found
......@@ -2,4 +2,6 @@
# should match https://pypi.python.org/pypi names. For the full spec or
# dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html
sentry-sdk
tenacity
......@@ -10,6 +10,7 @@ swh-storage.
from datetime import datetime
import os
import os.path
import sentry_sdk
import subprocess
import tempfile
import time
......@@ -18,6 +19,7 @@ from typing import Any, BinaryIO, Dict, Iterator, List, Optional, Sequence, Tupl
from tenacity import retry
from tenacity.retry import retry_if_exception_type
from tenacity.stop import stop_after_attempt
from urllib3.util import parse_url
from swh.loader.core.loader import BaseLoader
......@@ -561,6 +563,7 @@ class CvsLoader(BaseLoader):
return False
except Exception:
self.log.exception("Exception in fetch_data:")
sentry_sdk.capture_exception()
self._visit_status = "failed"
return False # Stopping iteration
self._contents, self._skipped_contents, self._directories, rev = data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment