diff --git a/frontend/src/component/onboarding/sdkSnippets.ts b/frontend/src/component/onboarding/sdkSnippets.ts index 917d848e0f6b..a761bc667a45 100644 --- a/frontend/src/component/onboarding/sdkSnippets.ts +++ b/frontend/src/component/onboarding/sdkSnippets.ts @@ -99,7 +99,7 @@ var settings = new UnleashSettings() Unleash unleash = new DefaultUnleash(config);`, Python: `from UnleashClient import UnleashClient -import time +import asyncio client = UnleashClient( url="", @@ -219,12 +219,9 @@ export const checkFlagCodeSnippets: Record = { Rust: ``, '.NET': ``, Java: ``, - Python: `try: - while True: - print(client.is_enabled("")) - time.sleep(1) -except KeyboardInterrupt: - client.destroy()`, + Python: `while True: + print(client.is_enabled("")) + asyncio.run(asyncio.sleep(1))`, JavaScript: ``, React: ``, Vue: ``,