change: remove unused sentry exception

This commit is contained in:
debugtalk
2022-04-22 23:45:16 +08:00
parent 3718036048
commit 24fcdfb418
2 changed files with 1 additions and 4 deletions

View File

@@ -6,7 +6,6 @@ from typing import Dict, List, Set, Text, Tuple
import jinja2
from loguru import logger
from sentry_sdk import capture_exception
from httprunner import __version__, exceptions
from httprunner.compat import (convert_variables, ensure_path_sep,
@@ -169,7 +168,6 @@ def format_pytest_with_black(*python_paths: Text):
)
[subprocess.run(["black", path]) for path in python_paths]
except subprocess.CalledProcessError as ex:
capture_exception(ex)
logger.error(ex)
sys.exit(1)
except OSError:

View File

@@ -6,7 +6,6 @@ from typing import Any, Callable, Dict, List, Set, Text
from urllib.parse import urlparse
from loguru import logger
from sentry_sdk import capture_exception
from httprunner import exceptions, loader, utils
from httprunner.models import FunctionsMapping, VariablesMapping
@@ -144,7 +143,7 @@ def regex_findall_functions(content: Text) -> List[Text]:
try:
return function_regex_compile.findall(content)
except TypeError as ex:
capture_exception(ex)
logger.error(f"regex findall functions error: {ex}")
return []