From 5d62d0a3c7696b10278e8f834147b23f4caea940 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sat, 21 Dec 2019 17:21:00 +0800 Subject: [PATCH] fix: ensure initializing sentry_sdk on startup --- docs/CHANGELOG.md | 8 ++++++++ httprunner/__init__.py | 5 ++++- httprunner/__main__.py | 6 +----- pyproject.toml | 2 +- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 2bfc6d4e..647be79e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## 2.4.6 (2019-12-21) + +**Fixed** + +- fix: ensure initializing sentry_sdk on startup + +**Fixed** + ## 2.4.5 (2019-12-20) **Added** diff --git a/httprunner/__init__.py b/httprunner/__init__.py index 798f1866..e345eca5 100644 --- a/httprunner/__init__.py +++ b/httprunner/__init__.py @@ -1,4 +1,7 @@ -__version__ = "2.4.5" +__version__ = "2.4.6" __description__ = "One-stop solution for HTTP(S) testing." __all__ = ["__version__", "__description__"] + +import sentry_sdk +sentry_sdk.init("https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849") diff --git a/httprunner/__main__.py b/httprunner/__main__.py index ca8cc147..70236a86 100644 --- a/httprunner/__main__.py +++ b/httprunner/__main__.py @@ -1,10 +1,6 @@ import sys - -import sentry_sdk - -sentry_sdk.init("https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849") +from httprunner.cli import main if __name__ == "__main__": - from httprunner.cli import main sys.exit(main()) diff --git a/pyproject.toml b/pyproject.toml index cdc3defa..4b83ec9c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "httprunner" -version = "2.4.5" +version = "2.4.6" description = "One-stop solution for HTTP(S) testing." license = "Apache-2.0" readme = "README.md"