From e16139b76f3dfdecd9a967544f0695cd543dc446 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 19:12:07 +0000 Subject: [PATCH] style: format code with Black and isort This commit fixes the style issues introduced in 7d99d29 according to the output from Black and isort. Details: None --- sofiAPI.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/sofiAPI.py b/sofiAPI.py index b6e25ee1..4f992d6a 100644 --- a/sofiAPI.py +++ b/sofiAPI.py @@ -411,11 +411,15 @@ async def handle_2fa(page, account, name, botObj, discord_loop): secret = None if secret is not None: try: - remember = await asyncio.wait_for(page.select("input[id=rememberBrowser]"), timeout=5) + remember = await asyncio.wait_for( + page.select("input[id=rememberBrowser]"), timeout=5 + ) if remember: await remember.click() except asyncio.TimeoutError: - print(f"'rememberBrowser' checkbox not found for {name}. Continuing without it...") + print( + f"'rememberBrowser' checkbox not found for {name}. Continuing without it..." + ) # Continue with 2FA input twofa_input = await page.select("input[id=code]") @@ -443,11 +447,15 @@ async def handle_2fa(page, account, name, botObj, discord_loop): if sms_2fa_element: # SMS 2FA handling try: - remember = await asyncio.wait_for(page.select("input[id=rememberBrowser]"), timeout=5) + remember = await asyncio.wait_for( + page.select("input[id=rememberBrowser]"), timeout=5 + ) if remember: await remember.click() except asyncio.TimeoutError: - print(f"'rememberBrowser' checkbox not found for {name}. Continuing without it...") + print( + f"'rememberBrowser' checkbox not found for {name}. Continuing without it..." + ) sms2fa_input = await page.select("input[id=code]") if not sms2fa_input: