Skip to content
Snippets Groups Projects
Commit bb4e523a authored by FH's avatar FH
Browse files

redefine config["only_country"] if validation fails

parent ebf069ea
No related branches found
No related tags found
No related merge requests found
......@@ -399,7 +399,9 @@ class PacmanMirrors:
def validate_custom_config(self):
"""Check for custom config and validate it"""
self.custom = ValidFn.is_custom_conf_valid(self.config["only_country"])
if self.custom:
if not self.custom:
self.config["only_country"] = []
else:
servers = JsonFn.read_json_file(CUSTOM_FILE, dictionary=True)
self.mirrors.seed(servers, custom=True)
self.only_country = self.mirrors.countrylist
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment