From a7e203610c83b159ff971125c51877bbd5181bc8 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sat, 21 Dec 2019 17:08:46 +0800 Subject: [PATCH] fix: init sentry_sdk before main --- httprunner/__main__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/httprunner/__main__.py b/httprunner/__main__.py index 59d39cb5..ca8cc147 100644 --- a/httprunner/__main__.py +++ b/httprunner/__main__.py @@ -2,10 +2,9 @@ import sys import sentry_sdk -from httprunner.cli import main - sentry_sdk.init("https://cc6dd86fbe9f4e7fbd95248cfcff114d@sentry.io/1862849") if __name__ == "__main__": + from httprunner.cli import main sys.exit(main())