mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 05:52:12 +08:00
Block users from using development branches
This commit is contained in:
@@ -29,6 +29,12 @@ def report_tombstone(fn: str, message: str, contents: str) -> None:
|
||||
sentry_sdk.flush()
|
||||
|
||||
|
||||
def capture_block() -> None:
|
||||
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, **kwargs) -> None:
|
||||
exc_text = traceback.format_exc()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user