From 671307b53b1a6a09bb536c7a0ef387fb53b708ef Mon Sep 17 00:00:00 2001 From: Nigel1992 Date: Thu, 3 Apr 2025 01:02:57 +0200 Subject: [PATCH] fix(oauth): remove duplicate browser data directory message --- oauth_auth.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oauth_auth.py b/oauth_auth.py index fa5fabf..94e8695 100644 --- a/oauth_auth.py +++ b/oauth_auth.py @@ -113,6 +113,8 @@ class OAuthHandler: "- macOS: Google Chrome, Chromium\n" + "- Linux: Google Chrome, Chromium, chromium-browser") + print(f"{Fore.CYAN}{EMOJI['INFO']} {self.translator.get('oauth.found_browser_data_directory', path=user_data_dir) if self.translator else f'Found browser data directory: {user_data_dir}'}{Style.RESET_ALL}") + # Show warning about closing Chrome first print(f"\n{Fore.YELLOW}{EMOJI['WARNING']} {self.translator.get('chrome_profile.warning_chrome_close') if self.translator else 'Warning: This will close all running Chrome processes'}{Style.RESET_ALL}") choice = input(f"{Fore.YELLOW}Continue? (y/N): {Style.RESET_ALL}").lower() @@ -191,7 +193,6 @@ class OAuthHandler: # Try each possible path for path in possible_paths: if os.path.exists(path): - print(f"{Fore.CYAN}{EMOJI['INFO']} {self.translator.get('oauth.found_browser_data_directory', path=path) if self.translator else f'Found browser data directory: {path}'}{Style.RESET_ALL}") return path # Create temporary profile if no existing profile found