From a0dedaea52f12a68d88e02dc0d61f3a6ca9ee13c Mon Sep 17 00:00:00 2001 From: xtaodada Date: Thu, 22 Jun 2023 11:34:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20sentry=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagermaid/modules/sentry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagermaid/modules/sentry.py b/pagermaid/modules/sentry.py index 85f01ae..9b7cd3c 100644 --- a/pagermaid/modules/sentry.py +++ b/pagermaid/modules/sentry.py @@ -30,7 +30,7 @@ def sentry_before_send(event, hint): sentry_sdk_report_time = time() sentry_sdk_git_hash = ( - run("git rev-parse HEAD", stdout=PIPE, shell=True, check=True).stdout.decode(check=True).strip(check=True) + run("git rev-parse HEAD", stdout=PIPE, shell=True, check=True).stdout.decode().strip() ) sentry_sdk.init( Config.SENTRY_API,