Block users from using development branches
This commit is contained in:
@@ -104,7 +104,7 @@ def manager_init() -> None:
|
||||
p.prepare()
|
||||
|
||||
# FrogPilot variables
|
||||
install_frogpilot(params)
|
||||
install_frogpilot(build_metadata, params)
|
||||
frogpilot_boot_functions(build_metadata, params)
|
||||
|
||||
|
||||
|
||||
@@ -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