mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 00:03:45 +08:00
September 27th, 2025 Update
This commit is contained in:
+6
-1
@@ -7,7 +7,6 @@ from enum import Enum
|
||||
from sentry_sdk.integrations.threading import ThreadingIntegration
|
||||
|
||||
from openpilot.common.params import Params
|
||||
from openpilot.system.athena.registration import is_registered_device
|
||||
from openpilot.system.hardware import HARDWARE, PC
|
||||
from openpilot.common.swaglog import cloudlog
|
||||
from openpilot.system.version import get_build_metadata, get_version
|
||||
@@ -31,6 +30,12 @@ def report_tombstone(fn: str, message: str, contents: str) -> None:
|
||||
sentry_sdk.flush()
|
||||
|
||||
|
||||
def capture_block():
|
||||
with sentry_sdk.push_scope() as scope:
|
||||
sentry_sdk.capture_message("Blocked user from using the development branch", level='info')
|
||||
sentry_sdk.flush()
|
||||
|
||||
|
||||
def capture_exception(*args, crash_log=True, **kwargs) -> None:
|
||||
exc_text = traceback.format_exc()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user