diff --git a/archinstall/lib/models/mirrors.py b/archinstall/lib/models/mirrors.py index 4cff8ee52d..327a319349 100644 --- a/archinstall/lib/models/mirrors.py +++ b/archinstall/lib/models/mirrors.py @@ -1,6 +1,5 @@ import datetime import http.client -import json import time import urllib.error import urllib.parse @@ -200,7 +199,7 @@ def get_status_by_region(self, region: str, speed_sort: bool) -> list[MirrorStat return sorted(region_list, key=lambda mirror: (mirror.score, mirror.speed)) def _parse_remote_mirror_list(self, mirrorlist: str) -> dict[str, list[MirrorStatusEntryV3]] | None: - mirror_status = MirrorStatusListV3(**json.loads(mirrorlist)) + mirror_status = MirrorStatusListV3.model_validate_json(mirrorlist) sorting_placeholder: dict[str, list[MirrorStatusEntryV3]] = {}