mirror of
https://github.com/httprunner/httprunner.git
synced 2026-08-28 03:30:01 +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
|
import jinja2
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
from sentry_sdk import capture_exception
|
|
||||||
|
|
||||||
from httprunner import __version__, exceptions
|
from httprunner import __version__, exceptions
|
||||||
from httprunner.compat import (convert_variables, ensure_path_sep,
|
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]
|
[subprocess.run(["black", path]) for path in python_paths]
|
||||||
except subprocess.CalledProcessError as ex:
|
except subprocess.CalledProcessError as ex:
|
||||||
capture_exception(ex)
|
|
||||||
logger.error(ex)
|
logger.error(ex)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ from typing import Any, Callable, Dict, List, Set, Text
|
|||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
from sentry_sdk import capture_exception
|
|
||||||
|
|
||||||
from httprunner import exceptions, loader, utils
|
from httprunner import exceptions, loader, utils
|
||||||
from httprunner.models import FunctionsMapping, VariablesMapping
|
from httprunner.models import FunctionsMapping, VariablesMapping
|
||||||
@@ -144,7 +143,7 @@ def regex_findall_functions(content: Text) -> List[Text]:
|
|||||||
try:
|
try:
|
||||||
return function_regex_compile.findall(content)
|
return function_regex_compile.findall(content)
|
||||||
except TypeError as ex:
|
except TypeError as ex:
|
||||||
capture_exception(ex)
|
logger.error(f"regex findall functions error: {ex}")
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user