mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
change: remove unused sentry exception
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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 []
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user