🐛 Fix sentry setup

This commit is contained in:
xtaodada 2023-06-22 11:34:27 +08:00
parent 8e29af1875
commit a0dedaea52
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -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,