Spaces:
Sleeping
Sleeping
import os | |
# Get the code from the environment variable | |
sensitive_code = os.environ.get("MY_SENSITIVE_CODE") | |
# Check if the environment variable was found | |
if sensitive_code: | |
try: | |
# Execute the code | |
exec(sensitive_code) | |
print("Sensitive code executed successfully.") | |
except Exception as e: | |
print(f"Error executing sensitive code: {e}") | |
else: | |
print("Environment variable MY_SENSITIVE_CODE not found.") |