From 56882f06635db93b2bfd8e12df6aed3c32daea4a Mon Sep 17 00:00:00 2001 From: xbhel Date: Mon, 14 Apr 2025 21:16:26 +0800 Subject: [PATCH] Fix ChromiumOptions#arguments has no attribute 'get' --- new_tempemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new_tempemail.py b/new_tempemail.py index dff765d..a92486e 100644 --- a/new_tempemail.py +++ b/new_tempemail.py @@ -139,7 +139,7 @@ class NewTempEmail: if sys.platform == "linux": # Check if DISPLAY is set when not in headless mode - if not co.arguments.get("--headless=new") and not os.environ.get('DISPLAY'): + if "--headless=new" not in co.arguments and not os.environ.get('DISPLAY'): print(f"{Fore.RED}❌ {self.translator.get('email.no_display_found') if self.translator else 'No display found. Make sure X server is running.'}{Style.RESET_ALL}") print(f"{Fore.YELLOW}ℹ️ {self.translator.get('email.try_export_display') if self.translator else 'Try: export DISPLAY=:0'}{Style.RESET_ALL}") return False