Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrunel committed May 15, 2024
1 parent 25dc7f0 commit 06f90be
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions lavague-core/lavague/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
import os
import warnings


def telemetry_warning():
telemetry_var = os.getenv("TELEMETRY_VAR")
telemetry_var = os.getenv("TELEMETRY_VAR")
if telemetry_var != "NONE":
warning_message = (
"\033[93mTelemetry is turned on. To turn off telemetry, set your TELEMETRY_VAR to 'NONE'\033[0m"
)
warning_message = "\033[93mTelemetry is turned on. To turn off telemetry, set your TELEMETRY_VAR to 'NONE'\033[0m"
warnings.warn(warning_message, UserWarning)


def exec_warning():
warning_message = (
"\033[93mSecurity warning: This package executes LLM-generated code. Consider using this package in a sandboxed environment.\033[0m"
)
warning_message = "\033[93mSecurity warning: This package executes LLM-generated code. Consider using this package in a sandboxed environment.\033[0m"
warnings.warn(warning_message, UserWarning)


telemetry_warning()
exec_warning()
exec_warning()

0 comments on commit 06f90be

Please sign in to comment.