Explorar el Código

Fix handling empty proxy value

wivb hace 6 años
padre
commit
b2953ac648
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pyinstalive/startup.py

+ 1 - 1
pyinstalive/startup.py

@@ -190,7 +190,7 @@ def validate_inputs(config, args, unknown_args):
                 logger.warn("Custom config path is invalid, falling back to default path: {:s}".format(pil.dl_path))
                 logger.separator()
 
-        if pil.proxy != None:
+        if pil.proxy != None and pil.proxy != '':
             parsed_url = urlparse(pil.proxy)
             if (not parsed_url.netloc or not parsed_url.scheme):
                 error_arr.append(['proxy', 'None'])