mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 13:17:55 -05:00
Added the check for Sentry not existing
This commit is contained in:
17
main.py
17
main.py
@@ -2,15 +2,18 @@
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
import sentry_sdk
|
||||
try:
|
||||
import sentry_sdk
|
||||
|
||||
sentry_sdk.init(
|
||||
dsn="https://4101633bc5560bae67d6eab013ba9686@o4508731634221056.ingest.us.sentry.io/4508732401909760",
|
||||
send_default_pii=True,
|
||||
traces_sample_rate=1.0,
|
||||
)
|
||||
sentry_sdk.init(
|
||||
dsn="https://4101633bc5560bae67d6eab013ba9686@o4508731634221056.ingest.us.sentry.io/4508732401909760",
|
||||
send_default_pii=True,
|
||||
traces_sample_rate=1.0,
|
||||
)
|
||||
|
||||
sentry_sdk.profiler.start_profiler()
|
||||
sentry_sdk.profiler.start_profiler()
|
||||
except ImportError:
|
||||
SENTRY_ENABLED = False
|
||||
|
||||
try:
|
||||
from core.cli.main import run_pythagora
|
||||
|
||||
Reference in New Issue
Block a user