style: format session_string_generator.py with black

This commit is contained in:
Daniil Isakov 2026-03-05 02:55:57 +03:00
parent c39cde69f7
commit 03f3321942

View file

@ -69,9 +69,7 @@ def _phone_login(client: TelegramClient) -> None:
try:
client.send_code_request(phone)
except errors.FloodWaitError as e:
print(
f"\nFlood wait error; you must wait {e.seconds} seconds before trying again."
)
print(f"\nFlood wait error; you must wait {e.seconds} seconds before trying again.")
client.disconnect()
sys.exit(1)
except errors.PhoneNumberInvalidError:
@ -97,9 +95,7 @@ def main() -> None:
if not API_ID or not API_HASH:
print("Error: TELEGRAM_API_ID and TELEGRAM_API_HASH must be set in .env file")
print(
"Create an .env file with your credentials from https://my.telegram.org/apps"
)
print("Create an .env file with your credentials from https://my.telegram.org/apps")
sys.exit(1)
try: