From 0520b56ea9ca806979728caa32f27fea93cf9388 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 13 Aug 2024 15:40:48 +0200 Subject: [PATCH] webconfig: Don't allow exceptions from chromeos workaround This except clause was too narrow, so it would fail here even on other systems just because webbrowser.get() returned nothing usable Now it will fail *later* with "could not locate runnable browser", but at least it won't say anything about chromeos on non-chromeos systems. --- share/tools/web_config/webconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/tools/web_config/webconfig.py b/share/tools/web_config/webconfig.py index df4f92819..13a1ff450 100755 --- a/share/tools/web_config/webconfig.py +++ b/share/tools/web_config/webconfig.py @@ -113,7 +113,7 @@ def is_chromeos_garcon(): # https://source.chromium.org/search?q=garcon-url-handler try: return "garcon-url-handler" in webbrowser.get().name - except AttributeError: + except: return False