sentry-fix
This commit is contained in:
parent
709618bdb9
commit
b9d0e47fca
4
main.py
4
main.py
|
@ -37,8 +37,12 @@ async def start_up():
|
||||||
print(views_stat_task)
|
print(views_stat_task)
|
||||||
git_task = asyncio.create_task(GitTask.git_task_worker())
|
git_task = asyncio.create_task(GitTask.git_task_worker())
|
||||||
print(git_task)
|
print(git_task)
|
||||||
|
try:
|
||||||
import sentry_sdk
|
import sentry_sdk
|
||||||
sentry_sdk.init("https://%s@testsentry.discours.io/2" % SENTRY_ID)
|
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():
|
async def dev_start_up():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user