Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 0 instead of None when the speedtest fails. #2650

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

suica-me
Copy link
Contributor

@suica-me suica-me commented Aug 28, 2024

PR Description:

https://github.com/archlinux/archinstall/blob/master/archinstall/lib/mirrors.py#L290
If the speed is None, sorted will throw "TypeError: '<' not supported between instances of 'NoneType' and 'float'"
So use 0 instead of None when the speedtest fails.

Tests and Checks

  • I have tested the code!

@suica-me suica-me requested a review from Torxed as a code owner August 28, 2024 08:55
@Torxed Torxed merged commit 0601708 into archlinux:master Aug 28, 2024
6 checks passed
@Torxed
Copy link
Member

Torxed commented Aug 28, 2024

Awesome, thanks for the quick submission!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants