Sfoglia il codice sorgente

[metadata] Do not strip host URL when it is not set

Romain Rigaux 9 anni fa
parent
commit
22b4da5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      desktop/libs/metadata/src/metadata/conf.py

+ 1 - 1
desktop/libs/metadata/src/metadata/conf.py

@@ -35,7 +35,7 @@ def get_auth_password():
   return DEFAULT_AUTH_PASSWORD.get()
 
 def get_optimizer_url():
-  return OPTIMIZER.API_URL.get().strip('/')
+  return OPTIMIZER.API_URL.get() and OPTIMIZER.API_URL.get().strip('/')
 
 
 OPTIMIZER = ConfigSection(