commented out backend service until solution found for chrome in docker problem

This commit is contained in:
martin legrand
2025-04-17 18:59:13 +02:00
parent 36b26b43c9
commit ad9ca5e7cb
5 changed files with 58 additions and 62 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ def get_chrome_path() -> str:
paths = ["/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
"/Applications/Google Chrome Beta.app/Contents/MacOS/Google Chrome Beta"]
else: # Linux
paths = ["/usr/bin/google-chrome", "/usr/bin/chromium-browser", "/usr/bin/chromium"]
paths = ["/usr/bin/google-chrome", "/usr/bin/chromium-browser", "/usr/bin/chromium", "/opt/chrome/chrome", "/usr/local/bin/chrome"]
for path in paths:
if os.path.exists(path) and os.access(path, os.X_OK): # Check if executable
+2 -4
View File
@@ -53,10 +53,8 @@ class Provider:
api_key_var = f"{provider.upper()}_API_KEY"
api_key = os.getenv(api_key_var)
if not api_key:
api_key = input(f"Please enter your {provider} API key: ")
set_key(".env", api_key_var, api_key)
self.logger.info("Set API key in env.")
load_dotenv()
pretty_print(f"API key {api_key_var} not found in .env file. Please add it", color="warning")
exit(1)
return api_key
def check_address_format(self, address):