Skip to content

Commit

Permalink
Added error handling for invalid certificates during speedtest. Also …
Browse files Browse the repository at this point in the history
…added a generic error handler to catch all network errors (#2644)
  • Loading branch information
Torxed authored Aug 28, 2024
1 parent c7aeead commit 905479c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions archinstall/lib/models/mirrors.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def speed(self) -> float|None:
except http.client.IncompleteRead:
debug(f" speed: <undetermined>")
self._speed = None
except urllib.error.URLError as error:
debug(f" speed: <undetermined> ({error})")
self._speed = None
except Exception as error:
debug(f" speed: <undetermined> ({error})")
self._speed = None

return self._speed

Expand Down

0 comments on commit 905479c

Please sign in to comment.