sentry-fix

This commit is contained in:
tonyrewin 2022-12-04 11:24:43 +03:00
parent 709618bdb9
commit b9d0e47fca

View File

@ -37,8 +37,12 @@ async def start_up():
print(views_stat_task)
git_task = asyncio.create_task(GitTask.git_task_worker())
print(git_task)
import sentry_sdk
sentry_sdk.init("https://%s@testsentry.discours.io/2" % SENTRY_ID)
try:
import sentry_sdk
sentry_sdk.init("https://%s@testsentry.discours.io/2" % SENTRY_ID)
except Exception as e:
print('[sentry] init error')
print(e)
async def dev_start_up():